Messages in this thread | | | Subject | Re: kmalloc to kzalloc patches for drivers/base | From | Alan Cox <> | Date | Mon, 18 Sep 2006 10:40:52 +0100 |
| |
Ar Sul, 2006-09-17 am 17:53 -0700, ysgrifennodd Om Narasimhan: > Tested by compiling. > > Signed off by Om Narasimhan <om.turyx@gmail.com>
> - 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@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |