diff options
author | John W. Linville <linville@tuxdriver.com> | 2012-11-19 16:53:32 +0100 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2012-11-20 20:08:30 +0100 |
commit | 5b15d0f449036b0674c5214296572f53974c22ac (patch) | |
tree | 33663b4bea7e8b7e3c1316cbd01533e6f4d47cbc /drivers/net/wireless/brcm80211/brcmfmac/fweh.c | |
parent | brcmsmac: Remove some noisy and uninformative debug messages (diff) | |
download | linux-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.c | 3 |
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; |