drivers/net: Convert unbounded kzalloc calls to kcalloc
[deliverable/linux.git] / drivers / net / wireless / rt2x00 / rt2400pci.c
index 5063e01410e5b76640946aea9d1722d0543c2aa5..8e3fbdf4888972eb6d4dc2e22ba38da64edc2236 100644 (file)
@@ -1481,7 +1481,7 @@ static int rt2400pci_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;
 
This page took 0.027314 seconds and 5 git commands to generate.