projects
/
deliverable
/
linux.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
[deliverable/linux.git]
/
drivers
/
net
/
wireless
/
rt2x00
/
rt2500pci.c
diff --git
a/drivers/net/wireless/rt2x00/rt2500pci.c
b/drivers/net/wireless/rt2x00/rt2500pci.c
index c2a555d5376b3bbe4738813225a695d8fd81eac0..1d174e42f11e2c6a13a4625f83c4570407d1e660 100644
(file)
--- a/
drivers/net/wireless/rt2x00/rt2500pci.c
+++ b/
drivers/net/wireless/rt2x00/rt2500pci.c
@@
-1795,7
+1795,7
@@
static int rt2500pci_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;
This page took
0.026722 seconds
and
5
git commands to generate.