]> bbs.cooldavid.org Git - net-next-2.6.git/blobdiff - drivers/net/wireless/rt2x00/rt2500pci.c
drivers/net: Convert unbounded kzalloc calls to kcalloc
[net-next-2.6.git] / drivers / net / wireless / rt2x00 / rt2500pci.c
index c2a555d5376b3bbe4738813225a695d8fd81eac0..1d174e42f11e2c6a13a4625f83c4570407d1e660 100644 (file)
@@ -1795,7 +1795,7 @@ static int rt2500pci_probe_hw_mode(struct rt2x00_dev *rt2x00dev)
        /*
         * Create channel information array
         */
-       info = kzalloc(spec->num_channels * sizeof(*info), GFP_KERNEL);
+       info = kcalloc(spec->num_channels, sizeof(*info), GFP_KERNEL);
        if (!info)
                return -ENOMEM;