brcmfmac: Fix bitmap malloc bug in msgbuf.
PATCH 1/1 brcmfmac: Fix bitmap malloc bug in msgbuf.
From: Hante Meuleman <[email protected]>
commit 333c2aa029b847051a2db76a6ca59f699a520030 upstream.
Backported to linux-3.17.y branch of stable repository.
Reviewed-by Arend Van Spriel <[email protected]>
Reviewed-by Pieter-Paul Giesberts <[email protected]>
Signed-off-by Hante Meuleman <[email protected]>
Signed-off-by Arend van Spriel <[email protected]>
Signed-off-by John W. Linville <[email protected]>
--- drivers/net/wireless/brcm80211/brcmfmac/msgbuf.c | 1 + 1 file changed, 1 insertion(+)
drivers/net/wireless/brcm80211/brcmfmac/msgbuf.c +1 -0
@@ -1282,6 +1282,7 @@ int brcmf_proto_msgbuf_attach(struct brcmf_pub *drvr) }INIT_WORK (&msgbuf->txflow_work, brcmf_msgbuf_txflow_worker); count =BITS_TO_LONGS (if_msgbuf->nrof_flowrings); + count = count *sizeof (unsigned long ); msgbuf->flow_map =kzalloc (count,GFP_ATOMIC );if (!msgbuf->flow_map) goto fail;
Signature · 1 line
1.9.1