aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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,
222 222
223 /* gang-find the pages */ 223 /* gang-find the pages */
224 ret = -ENOMEM; 224 ret = -ENOMEM;
225 pages = kzalloc(lpages * sizeof(struct page *), GFP_KERNEL); 225 pages = kcalloc(lpages, sizeof(struct page *), GFP_KERNEL);
226 if (!pages) 226 if (!pages)
227 goto out_free; 227 goto out_free;
228 228