diff options
author | John W. Linville <linville@tuxdriver.com> | 2012-11-19 19:53:32 +0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2012-11-20 23:08:30 +0400 |
commit | 5b15d0f449036b0674c5214296572f53974c22ac (patch) | |
tree | 33663b4bea7e8b7e3c1316cbd01533e6f4d47cbc | |
parent | 9242c7261b8c05de71fb83f2fa7a299691c66977 (diff) | |
download | linux-5b15d0f449036b0674c5214296572f53974c22ac.tar.xz |
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>
-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; |