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>
This commit is contained in:
parent
9242c7261b
commit
5b15d0f449
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue