summaryrefslogtreecommitdiffstats
path: root/fs/ramfs
diff options
context:
space:
mode:
authorFabian Frederick <fabf@skynet.be>2014-08-08 23:19:43 +0200
committerLinus Torvalds <torvalds@linux-foundation.org>2014-08-09 00:57:18 +0200
commit6f4535ed7d626c3760243b9c5223baaa358a5fdd (patch)
treee8d9c77d3a5f12771661b9c57cea9f40d9afc791 /fs/ramfs
parentkernel/kallsyms.c: fix %pB when there's no symbol at the address (diff)
downloadlinux-6f4535ed7d626c3760243b9c5223baaa358a5fdd.tar.xz
linux-6f4535ed7d626c3760243b9c5223baaa358a5fdd.zip
fs/ramfs/file-nommu.c: replace count*size kzalloc by kcalloc
Signed-off-by: Fabian Frederick <fabf@skynet.be> Cc: Axel Lin <axel.lin@ingics.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'fs/ramfs')
-rw-r--r--fs/ramfs/file-nommu.c2
1 files changed, 1 insertions, 1 deletions
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;