]> asedeno.scripts.mit.edu Git - linux.git/blobdiff - mm/slab.c
x86/events/intel/ds: Fix bts_interrupt_threshold alignment
[linux.git] / mm / slab.c
index 36688f6c87ebd84d8978cecb26bc4739cb8b0910..aa76a70e087e6f5f1b1f61a18065831447dffec5 100644 (file)
--- a/mm/slab.c
+++ b/mm/slab.c
@@ -4338,7 +4338,8 @@ static int leaks_show(struct seq_file *m, void *p)
        if (x[0] == x[1]) {
                /* Increase the buffer size */
                mutex_unlock(&slab_mutex);
-               m->private = kzalloc(x[0] * 4 * sizeof(unsigned long), GFP_KERNEL);
+               m->private = kcalloc(x[0] * 4, sizeof(unsigned long),
+                                    GFP_KERNEL);
                if (!m->private) {
                        /* Too bad, we are really out */
                        m->private = x;