Re: kmalloc to kzalloc patches for drivers/base

From: Alan Cox
Date: Mon Sep 18 2006 - 05:20:07 EST


Ar Sul, 2006-09-17 am 17:53 -0700, ysgrifennodd Om Narasimhan:
> Tested by compiling.
>
> Signed off by Om Narasimhan <om.turyx@xxxxxxxxx>

> - if (!(retval = kmalloc (sizeof *retval, SLAB_KERNEL)))
> + if (!(retval = kzalloc (sizeof *retval, SLAB_KERNEL)))
> return retval;


NAK

Why slow all these allocations down when they don't zero the memory
anyway ?

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/