mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-17 17:24:17 +08:00
fd0977d0f4
I noticed that sound/pci/asihpi/hpicmn.c::hpi_alloc_control_cache() does not check the return value from kmalloc(), which may fail. If kmalloc() fails we'll dereference a null pointer and things will go bad fast. There are two memory allocations in that function and there's also the problem that the first may succeed and the second may fail and nothing is done about that either which will also go wrong down the line. Signed-off-by: Jesper Juhl <jj@chaosbits.net> Acked-by: Eliot Blennerhassett <linux@audioscience.com> Signed-off-by: Takashi Iwai <tiwai@suse.de> |
||
---|---|---|
.. | ||
asihpi.c | ||
hpi6000.c | ||
hpi6000.h | ||
hpi6205.c | ||
hpi6205.h | ||
hpi_internal.h | ||
hpi.h | ||
hpicmn.c | ||
hpicmn.h | ||
hpidebug.c | ||
hpidebug.h | ||
hpidspcd.c | ||
hpidspcd.h | ||
hpifunc.c | ||
hpimsginit.c | ||
hpimsginit.h | ||
hpimsgx.c | ||
hpimsgx.h | ||
hpioctl.c | ||
hpioctl.h | ||
hpios.c | ||
hpios.h | ||
hpipcida.h | ||
Makefile |