fs/ramfs/file-nommu.c: replace count*size kzalloc by kcalloc
authorFabian Frederick <[email protected]>
Fri, 8 Aug 2014 21:19:43 +0000 (14:19 -0700)
committerLinus Torvalds <[email protected]>
Fri, 8 Aug 2014 22:57:18 +0000 (15:57 -0700)
Signed-off-by: Fabian Frederick <[email protected]>
Cc: Axel Lin <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
fs/ramfs/file-nommu.c

index dda012ad4208d3192521c80a082af5ff038f5b3b..bbafbde3471a65b0f0f509b0ba5ccc48dd1d2718 100644 (file)
@@ -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;