]> git.baikalelectronics.ru Git - kernel.git/commit
ALSA: usb - driver neglects kmalloc return value check and may deref NULL
authorJesper Juhl <jj@chaosbits.net>
Fri, 29 Oct 2010 18:40:23 +0000 (20:40 +0200)
committerTakashi Iwai <tiwai@suse.de>
Mon, 1 Nov 2010 09:23:39 +0000 (10:23 +0100)
commitfe3db3b4503e5b483ce357c72aa1ec015a56dacd
tree03fa96d09560dcc68a059318a4100157d37da806
parentfa7d18ab3f2c1fc4a0481215057845055f6d08e6
ALSA: usb - driver neglects kmalloc return value check and may deref NULL

sound/usb/pcm.c::snd_usb_pcm_check_knot() fails to check the return value
from kmalloc() and may end up dereferencing a null pointer.
The patch below (compile tested only) should take care of that little
problem.

Signed-off-by: Jesper Juhl <jj@chaosbits.net>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/usb/pcm.c