Commit 0fb5df0d authored by Hante Meuleman's avatar Hante Meuleman Committed by Greg Kroah-Hartman

brcmfmac: Fix bitmap malloc bug in msgbuf.

commit 333c2aa0 upstream.
Reviewed-by: default avatarArend Van Spriel <arend@broadcom.com>
Reviewed-by: default avatarPieter-Paul Giesberts <pieterpg@broadcom.com>
Signed-off-by: default avatarHante Meuleman <meuleman@broadcom.com>
Signed-off-by: default avatarArend van Spriel <arend@broadcom.com>
Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent ead468da
...@@ -1355,6 +1355,7 @@ int brcmf_proto_msgbuf_attach(struct brcmf_pub *drvr) ...@@ -1355,6 +1355,7 @@ int brcmf_proto_msgbuf_attach(struct brcmf_pub *drvr)
} }
INIT_WORK(&msgbuf->txflow_work, brcmf_msgbuf_txflow_worker); INIT_WORK(&msgbuf->txflow_work, brcmf_msgbuf_txflow_worker);
count = BITS_TO_LONGS(if_msgbuf->nrof_flowrings); count = BITS_TO_LONGS(if_msgbuf->nrof_flowrings);
count = count * sizeof(unsigned long);
msgbuf->flow_map = kzalloc(count, GFP_KERNEL); msgbuf->flow_map = kzalloc(count, GFP_KERNEL);
if (!msgbuf->flow_map) if (!msgbuf->flow_map)
goto fail; goto fail;
......
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