]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
snd_hda(4): Don't pass bogus sizeof()s to unused sysctl arg2 parameter
authorConrad Meyer <cem@FreeBSD.org>
Thu, 12 May 2016 02:41:38 +0000 (02:41 +0000)
committerConrad Meyer <cem@FreeBSD.org>
Thu, 12 May 2016 02:41:38 +0000 (02:41 +0000)
commite6f79ac571b57cde61d0803358909a373d63182f
treeab3adfb4047d6228349eb5ee21936316dac2c56a
parenta03cc61df4964a782e149def544c621fe2cd8e32
snd_hda(4): Don't pass bogus sizeof()s to unused sysctl arg2 parameter

None of the sysctl handlers in hdaa use the arg2 parameter, so just pass zero
instead.  Additionally, the sizes being passed in were suspect (size of the
pointer rather than the value).

Reported by: Coverity
CIDs: 10076941009679
Sponsored by: EMC / Isilon Storage Division
sys/dev/sound/pci/hda/hdaa.c