drivers/net: Convert unbounded kzalloc calls to kcalloc
[deliverable/linux.git] / drivers / net / wireless / rt2x00 / rt2800lib.c
index b66e0fd8f0fa178f2d18544a2dc3e192c7c00b93..8c00fbda8664b3ed1d089cb54ab03080e61583cd 100644 (file)
@@ -2865,7 +2865,7 @@ int rt2800_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.0276 seconds and 5 git commands to generate.