projects
/
firefly-linux-kernel-4.4.55.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
drivers/net: Convert unbounded kzalloc calls to kcalloc
[firefly-linux-kernel-4.4.55.git]
/
drivers
/
net
/
wireless
/
rt2x00
/
rt2400pci.c
diff --git
a/drivers/net/wireless/rt2x00/rt2400pci.c
b/drivers/net/wireless/rt2x00/rt2400pci.c
index 5063e01410e5b76640946aea9d1722d0543c2aa5..8e3fbdf4888972eb6d4dc2e22ba38da64edc2236 100644
(file)
--- a/
drivers/net/wireless/rt2x00/rt2400pci.c
+++ b/
drivers/net/wireless/rt2x00/rt2400pci.c
@@
-1481,7
+1481,7
@@
static int rt2400pci_probe_hw_mode(struct rt2x00_dev *rt2x00dev)
/*
* Create channel information array
*/
- info = k
zalloc(spec->num_channels *
sizeof(*info), GFP_KERNEL);
+ info = k
calloc(spec->num_channels,
sizeof(*info), GFP_KERNEL);
if (!info)
return -ENOMEM;