[PATCH] kernel core: replace kmalloc+memset with kzalloc
[deliverable/linux.git] / kernel / kexec.c
index fcdd5d2bc3f4b47b57854c41a1cec882939c02ed..d43692cf2321f7bfaeb9297d410fca215e73d7b5 100644 (file)
@@ -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;
This page took 0.025696 seconds and 5 git commands to generate.