Commit 6f4535ed authored by Fabian Frederick's avatar Fabian Frederick Committed by Linus Torvalds

fs/ramfs/file-nommu.c: replace count*size kzalloc by kcalloc

Signed-off-by: default avatarFabian Frederick <fabf@skynet.be>
Cc: Axel Lin <axel.lin@ingics.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent b86280aa
...@@ -222,7 +222,7 @@ static unsigned long ramfs_nommu_get_unmapped_area(struct file *file, ...@@ -222,7 +222,7 @@ static unsigned long ramfs_nommu_get_unmapped_area(struct file *file,
/* gang-find the pages */ /* gang-find the pages */
ret = -ENOMEM; ret = -ENOMEM;
pages = kzalloc(lpages * sizeof(struct page *), GFP_KERNEL); pages = kcalloc(lpages, sizeof(struct page *), GFP_KERNEL);
if (!pages) if (!pages)
goto out_free; goto out_free;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment