Skip to content

Commit

Permalink
brcmfmac: check return from kzalloc in brcmf_fweh_process_event
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
John W. Linville committed Nov 20, 2012
1 parent 9242c72 commit 5b15d0f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions drivers/net/wireless/brcm80211/brcmfmac/fweh.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 5b15d0f

Please sign in to comment.