projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e48d661
)
p54: allocate enough space for ->used_rxkeys
author
Dan Carpenter
<dan.carpenter@oracle.com>
Sat, 6 May 2017 00:48:35 +0000
(
03:48
+0300)
committer
Kalle Valo
<kvalo@codeaurora.org>
Mon, 22 May 2017 15:30:09 +0000
(18:30 +0300)
We have the number of longs, but we should be calculating the number of
bytes needed.
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/intersil/p54/fwio.c
patch
|
blob
|
history
diff --git
a/drivers/net/wireless/intersil/p54/fwio.c
b/drivers/net/wireless/intersil/p54/fwio.c
index 4ac6764f4897f52f71ab12c4a10b1cc86067449e..3076f646c8293ca9ab7e80d50ece1b342a7e842d 100644
(file)
--- a/
drivers/net/wireless/intersil/p54/fwio.c
+++ b/
drivers/net/wireless/intersil/p54/fwio.c
@@
-176,8
+176,9
@@
int p54_parse_firmware(struct ieee80211_hw *dev, const struct firmware *fw)
* keeping a extra list for uploaded keys.
*/
- priv->used_rxkeys = kzalloc(BITS_TO_LONGS(
- priv->rx_keycache_size), GFP_KERNEL);
+ priv->used_rxkeys = kcalloc(BITS_TO_LONGS(priv->rx_keycache_size),
+ sizeof(long),
+ GFP_KERNEL);
if (!priv->used_rxkeys)
return -ENOMEM;