linux/drivers/net/wireless/rtlwifi
Jesper Juhl bdc4bf652b rtlwifi: Fix possible NULL dereference
In drivers/net/wireless/rtlwifi/pci.c::_rtl_pci_rx_interrupt() we call
dev_alloc_skb(), which may fail and return NULL, but we do not check the
returned value against NULL before dereferencing the returned pointer.
This may lead to a NULL pointer dereference which means we'll crash - not
good.

In a separate call to dev_alloc_skb(), the debug level is changed so that
the failure message will always be logged.

Signed-off-by: Jesper Juhl <jj@chaosbits.net>
Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
2011-01-21 15:07:38 -05:00
..
rtl8192ce rtlwifi: rtl8192ce: Fix driver problem when radio switch off at module load 2010-12-22 15:43:31 -05:00
base.c rtlwifi: rtl8192ce: Fix driver problem when radio switch off at module load 2010-12-22 15:43:31 -05:00
base.h
cam.c
cam.h
core.c rtlwifi: Switch locking from semaphores to mutexes 2010-12-16 15:22:32 -05:00
core.h
debug.c
debug.h
efuse.c
efuse.h
Kconfig rtl8192ce: Fix typo in Kconfig description 2010-12-20 14:49:48 -05:00
Makefile
pci.c rtlwifi: Fix possible NULL dereference 2011-01-21 15:07:38 -05:00
pci.h rtlwifi: convert to __packed notation 2010-12-16 09:20:16 -05:00
ps.c rtlwifi: Fix use of mutex in interrupt code 2010-12-20 14:49:48 -05:00
ps.h
rc.c
rc.h
regd.c
regd.h
wifi.h rtlwifi: Fix use of mutex in interrupt code 2010-12-20 14:49:48 -05:00