[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <Pine.LNX.4.61.0612031842140.25425@yvahk01.tjqt.qr>
Date: Sun, 3 Dec 2006 18:42:34 +0100 (MET)
From: Jan Engelhardt <jengelh@...ux01.gwdg.de>
To: "Robert P. J. Day" <rpjday@...dspring.com>
cc: Linux kernel mailing list <linux-kernel@...r.kernel.org>
Subject: Re: [PATCH] ipc: Convert kmalloc()+memset() to kzalloc() in ipc/.
>diff --git a/ipc/sem.c b/ipc/sem.c
>index 21b3289..3c23dc9 100644
>--- a/ipc/sem.c
>+++ b/ipc/sem.c
>@@ -1070,14 +1070,13 @@ static struct sem_undo *find_undo(struct
> ipc_rcu_getref(sma);
> sem_unlock(sma);
>
>- new = (struct sem_undo *) kmalloc(sizeof(struct sem_undo) + sizeof(short)*nsems, GFP_KERNEL);
>+ new = (struct sem_undo *) kzalloc(sizeof(struct sem_undo) + sizeof(short)*nsems, GFP_KERNEL);
You can drop the case in one go.
-`J'
--
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists