diff options
author | John W. Linville <linville@tuxdriver.com> | 2012-11-19 10:53:32 -0500 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2012-11-20 14:08:30 -0500 |
commit | 5b15d0f449036b0674c5214296572f53974c22ac (patch) | |
tree | 33663b4bea7e8b7e3c1316cbd01533e6f4d47cbc | |
parent | 9242c7261b8c05de71fb83f2fa7a299691c66977 (diff) |
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, | |||
494 | alloc_flag = GFP_ATOMIC; | 494 | alloc_flag = GFP_ATOMIC; |
495 | 495 | ||
496 | event = kzalloc(sizeof(*event) + datalen, alloc_flag); | 496 | event = kzalloc(sizeof(*event) + datalen, alloc_flag); |
497 | if (!event) | ||
498 | return; | ||
499 | |||
497 | event->code = code; | 500 | event->code = code; |
498 | event->ifidx = *ifidx; | 501 | event->ifidx = *ifidx; |
499 | 502 | ||