From: Jesper Juhl Date: Fri, 29 Oct 2010 18:40:23 +0000 (+0200) Subject: ALSA: usb - driver neglects kmalloc return value check and may deref NULL X-Git-Tag: v2.6.37-rc2~95^2~6 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8a8d56b2a2f9aa423c3d8b6b1e2792c0492059ed;p=pandora-kernel.git 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 Signed-off-by: Takashi Iwai --- Reading git-diff-tree failed