]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
ALSA: hda - potential (but unlikely) uninitialized variable
authorDan Carpenter <dan.carpenter@oracle.com>
Fri, 17 Apr 2015 13:19:46 +0000 (16:19 +0300)
committerTakashi Iwai <tiwai@suse.de>
Fri, 17 Apr 2015 13:32:17 +0000 (15:32 +0200)
commitf4d770317997f89bb6997ee3e8dd495cb8356ae9
treec77e1d3c7907079d5bbdaaa2ff3b3e48107d6881
parent7d4b5e978ad350916b5c3995490b09c4e59cec4a
ALSA: hda - potential (but unlikely) uninitialized variable

This function is a bit unusual because it accepts negative values as
"conn_len".  It's theoretically possible for both "cache_len" and
"conn_len" to be -ENOSPC and in that case we would oops trying to run
memcmp() on the uninitialized "list" pointer.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/hda/hda_proc.c