summaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/brcm80211/brcmfmac/fweh.c
diff options
context:
space:
mode:
authorJohn W. Linville <linville@tuxdriver.com>2012-11-19 16:53:32 +0100
committerJohn W. Linville <linville@tuxdriver.com>2012-11-20 20:08:30 +0100
commit5b15d0f449036b0674c5214296572f53974c22ac (patch)
tree33663b4bea7e8b7e3c1316cbd01533e6f4d47cbc /drivers/net/wireless/brcm80211/brcmfmac/fweh.c
parentbrcmsmac: Remove some noisy and uninformative debug messages (diff)
downloadlinux-5b15d0f449036b0674c5214296572f53974c22ac.tar.xz
linux-5b15d0f449036b0674c5214296572f53974c22ac.zip
brcmfmac: check return from kzalloc in brcmf_fweh_process_event
Signed-off-by: John W. Linville <linville@tuxdriver.com> Reported-by: Fengguang Wu <fengguang.wu@intel.com> Acked-by: Arend van Spriel <arend@broadcom.com>
Diffstat (limited to 'drivers/net/wireless/brcm80211/brcmfmac/fweh.c')
-rw-r--r--drivers/net/wireless/brcm80211/brcmfmac/fweh.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/net/wireless/brcm80211/brcmfmac/fweh.c b/drivers/net/wireless/brcm80211/brcmfmac/fweh.c
index 1e4188cc1b5a..fa8fc4433417 100644
--- a/drivers/net/wireless/brcm80211/brcmfmac/fweh.c
+++ b/drivers/net/wireless/brcm80211/brcmfmac/fweh.c
@@ -494,6 +494,9 @@ void brcmf_fweh_process_event(struct brcmf_pub *drvr,
alloc_flag = GFP_ATOMIC;
event = kzalloc(sizeof(*event) + datalen, alloc_flag);
+ if (!event)
+ return;
+
event->code = code;
event->ifidx = *ifidx;