drivers/net: Convert unbounded kzalloc calls to kcalloc
[cascardo/linux.git] / drivers / net / wireless / rt2x00 / rt2x00debug.c
index b0498e7..2d018ce 100644 (file)
@@ -333,7 +333,7 @@ static ssize_t rt2x00debug_read_queue_stats(struct file *file,
        if (*offset)
                return 0;
 
-       data = kzalloc(lines * MAX_LINE_LENGTH, GFP_KERNEL);
+       data = kcalloc(lines, MAX_LINE_LENGTH, GFP_KERNEL);
        if (!data)
                return -ENOMEM;