The patch titled Subject: drivers/parport/share.c: use kzalloc has been added to the -mm tree. Its filename is drivers-parport-use-kzalloc.patch Before you just go and hit "reply", please: a) Consider who else should be cc'ed b) Prefer to cc a suitable mailing list as well c) Ideally: find the original patch on the mailing list and do a reply-to-all to that, adding suitable additional cc's *** Remember to use Documentation/SubmitChecklist when testing your code *** The -mm tree is included into linux-next and is updated there every 3-4 working days ------------------------------------------------------ From: Alexandru Gheorghiu <gheorghiuandru@xxxxxxxxx> Subject: drivers/parport/share.c: use kzalloc Replaced calls to kmalloc and memset with kzalloc. Patch found using coccinelle. Signed-off-by: Alexandru Gheorghiu <gheorghiuandru@xxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- drivers/parport/share.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff -puN drivers/parport/share.c~drivers-parport-use-kzalloc drivers/parport/share.c --- a/drivers/parport/share.c~drivers-parport-use-kzalloc +++ a/drivers/parport/share.c @@ -282,14 +282,13 @@ struct parport *parport_register_port(un int device; char *name; - tmp = kmalloc(sizeof(struct parport), GFP_KERNEL); + tmp = kzalloc(sizeof(struct parport), GFP_KERNEL); if (!tmp) { printk(KERN_WARNING "parport: memory squeeze\n"); return NULL; } /* Init our structure */ - memset(tmp, 0, sizeof(struct parport)); tmp->base = base; tmp->irq = irq; tmp->dma = dma; _ Patches currently in -mm which might be from gheorghiuandru@xxxxxxxxx are origin.patch linux-next.patch drivers-parport-use-kzalloc.patch -- To unsubscribe from this list: send the line "unsubscribe mm-commits" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html