diff options
author | Burman Yan <yan_952@hotmail.com> | 2006-12-06 20:38:51 -0800 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.osdl.org> | 2006-12-07 08:39:41 -0800 |
commit | 4668edc334ee90cf50c382c3e423cfc510b5a126 (patch) | |
tree | ee25ca93e72031f7f333b6c251a57a55ef089c90 /kernel/kexec.c | |
parent | 304e61e6fbadec586dfe002b535f169a04248e49 (diff) | |
download | linux-stable-4668edc334ee90cf50c382c3e423cfc510b5a126.tar.gz linux-stable-4668edc334ee90cf50c382c3e423cfc510b5a126.tar.bz2 linux-stable-4668edc334ee90cf50c382c3e423cfc510b5a126.zip |
[PATCH] kernel core: replace kmalloc+memset with kzalloc
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'kernel/kexec.c')
-rw-r--r-- | kernel/kexec.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/kernel/kexec.c b/kernel/kexec.c index fcdd5d2bc3f4..d43692cf2321 100644 --- a/kernel/kexec.c +++ b/kernel/kexec.c @@ -108,11 +108,10 @@ static int do_kimage_alloc(struct kimage **rimage, unsigned long entry, /* 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; |