VisionFive2 Linux kernel

StarFive Tech Linux Kernel for VisionFive (JH7110) boards (mirror)

More than 9999 Commits   33 Branches   55 Tags
author: Fabian Frederick <fabf@skynet.be> 2014-08-08 14:19:43 -0700 committer: Linus Torvalds <torvalds@linux-foundation.org> 2014-08-08 15:57:18 -0700 commit: 6f4535ed7d626c3760243b9c5223baaa358a5fdd parent: b86280aa48b67c8119ed8f6c6bebd8c0af13a269
Commit Summary:
fs/ramfs/file-nommu.c: replace count*size kzalloc by kcalloc
Diffstat:
1 file changed, 1 insertion, 1 deletion
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;