From: Fabian Frederick Date: Fri, 8 Aug 2014 21:19:43 +0000 (-0700) Subject: fs/ramfs/file-nommu.c: replace count*size kzalloc by kcalloc X-Git-Tag: firefly_0821_release~176^2~3441^2~180 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=6f4535ed7d626c3760243b9c5223baaa358a5fdd;p=firefly-linux-kernel-4.4.55.git fs/ramfs/file-nommu.c: replace count*size kzalloc by kcalloc Signed-off-by: Fabian Frederick Cc: Axel Lin Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/fs/ramfs/file-nommu.c b/fs/ramfs/file-nommu.c index dda012ad4208..bbafbde3471a 100644 --- a/fs/ramfs/file-nommu.c +++ b/fs/ramfs/file-nommu.c @@ -222,7 +222,7 @@ static unsigned long ramfs_nommu_get_unmapped_area(struct file *file, /* gang-find the pages */ ret = -ENOMEM; - pages = kzalloc(lpages * sizeof(struct page *), GFP_KERNEL); + pages = kcalloc(lpages, sizeof(struct page *), GFP_KERNEL); if (!pages) goto out_free;