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)
committerJohn W. Linville <linville@tuxdriver.com>
Tue, 24 Jan 2012 19:08:37 +0000 (14:08 -0500)
commit76a92be537f1c8c259e393632301446257ca3ea9
tree2b5e5b43f0eb4e16ac32b07254cb26383a0a0d35
parent39d02a7d90602d4557ee05db2a157a4e0ec3a3d3
rtlwifi: rtl8192c_common: rtl8192de: Check for allocation failures

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>
Cc: Stable <stable@vger.kernel.org>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
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