]> git.karo-electronics.de Git - karo-tx-linux.git/commit
rtlwifi: rtl8192c_common: rtl8192de: Check for allocation failures
authorLarry Finger <Larry.Finger@lwfinger.net>
Sun, 8 Jan 2012 02:46:40 +0000 (20:46 -0600)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 2 Apr 2012 16:52:33 +0000 (09:52 -0700)
commitde886abb2cdce855f6badbd4d77f100df62499a7
tree544883cb5d824314d088d1ee58e8dd9faa960e69
parent81a142cabdaa962f2541c3497cd08d39432602df
rtlwifi: rtl8192c_common: rtl8192de: Check for allocation failures

commit 76a92be537f1c8c259e393632301446257ca3ea9 upstream.

In https://bugzilla.redhat.com/show_bug.cgi?id=771656, a kernel bug was
triggered due to a failed skb allocation that was not checked. This event
lead to an audit of all memory allocations in the complete rtlwifi family
of drivers. This patch fixes the rest.

Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/wireless/rtlwifi/pci.c
drivers/net/wireless/rtlwifi/rtl8192c/fw_common.c
drivers/net/wireless/rtlwifi/rtl8192de/fw.c
drivers/net/wireless/rtlwifi/usb.c