aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHante Meuleman <[email protected]>2014-12-03 21:05:27 +0100
committerJohn W. Linville <[email protected]>2014-12-04 11:35:02 -0500
commit333c2aa029b847051a2db76a6ca59f699a520030 (patch)
tree74b2aed063e78b4b6af893812f52991e264e44c4
parent5580373fb27706f07be3375c304558980eb90c4e (diff)
brcmfmac: Fix bitmap malloc bug in msgbuf.
Cc: [email protected] # v3.17, v3.18 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]>
-rw-r--r--drivers/net/wireless/brcm80211/brcmfmac/msgbuf.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/wireless/brcm80211/brcmfmac/msgbuf.c b/drivers/net/wireless/brcm80211/brcmfmac/msgbuf.c
index 9f783db34ae5..5b0b70fa1aea 100644
--- a/drivers/net/wireless/brcm80211/brcmfmac/msgbuf.c
+++ b/drivers/net/wireless/brcm80211/brcmfmac/msgbuf.c
@@ -1354,6 +1354,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_KERNEL);
if (!msgbuf->flow_map)
goto fail;