Commit 5b15d0f4 authored by John W. Linville's avatar John W. Linville

brcmfmac: check return from kzalloc in brcmf_fweh_process_event

Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
Reported-by: default avatarFengguang Wu <fengguang.wu@intel.com>
Acked-by: default avatarArend van Spriel <arend@broadcom.com>
parent 9242c726
......@@ -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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment