mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] kernel: Replace kmalloc/memset with kzalloc.
@ 2005-11-09  0:52 Panagiotis Issaris
  0 siblings, 0 replies; only message in thread
From: Panagiotis Issaris @ 2005-11-09  0:52 UTC (permalink / raw)
  To: linux-kernel


Replace kmalloc/memset by kzalloc.

Signed-off-by: Panagiotis Issaris <takis@issaris.org>

---

 kernel/kexec.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)

applies-to: 7085a0d56a035f94f292df54c7fe19d822904cec
bc3653f82726b556fbb5c7958f82c5b1e99c2860
diff --git a/kernel/kexec.c b/kernel/kexec.c
index 2c95848..94df70f 100644
--- a/kernel/kexec.c
+++ b/kernel/kexec.c
@@ -104,11 +104,10 @@ static int do_kimage_alloc(struct kimage
 
 	/* Allocate a controlling structure */
 	result = -ENOMEM;
-	image = kmalloc(sizeof(*image), GFP_KERNEL);
+	image = kzalloc(sizeof(*image), GFP_KERNEL);
 	if (!image)
 		goto out;
 
-	memset(image, 0, sizeof(*image));
 	image->head = 0;
 	image->entry = &image->head;
 	image->last_entry = &image->head;
---
0.99.9.GIT

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2005-11-09  0:53 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-11-09  0:52 [PATCH] kernel: Replace kmalloc/memset with kzalloc Panagiotis Issaris

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®