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
1 changed files with 3 additions and 0 deletions
|
@ -494,6 +494,9 @@ void brcmf_fweh_process_event(struct brcmf_pub *drvr,
|
||||||
alloc_flag = GFP_ATOMIC;
|
alloc_flag = GFP_ATOMIC;
|
||||||
|
|
||||||
event = kzalloc(sizeof(*event) + datalen, alloc_flag);
|
event = kzalloc(sizeof(*event) + datalen, alloc_flag);
|
||||||
|
if (!event)
|
||||||
|
return;
|
||||||
|
|
||||||
event->code = code;
|
event->code = code;
|
||||||
event->ifidx = *ifidx;
|
event->ifidx = *ifidx;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue