]> Pileus Git - ~andy/linux/blobdiff - drivers/net/wireless/rt2x00/rt61pci.c
Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/linville/wirel...
[~andy/linux] / drivers / net / wireless / rt2x00 / rt61pci.c
index 8940070fe2a2e4b36a80ecb1e635f50e478ab504..97b3935f615bfd4388a80cec84ff8bda850c220a 100644 (file)
@@ -2660,7 +2660,7 @@ static int rt61pci_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;