diff options
author | Fabian Frederick <fabf@skynet.be> | 2014-08-08 17:19:43 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2014-08-08 18:57:18 -0400 |
commit | 6f4535ed7d626c3760243b9c5223baaa358a5fdd (patch) | |
tree | e8d9c77d3a5f12771661b9c57cea9f40d9afc791 | |
parent | b86280aa48b67c8119ed8f6c6bebd8c0af13a269 (diff) |
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>
-rw-r--r-- | fs/ramfs/file-nommu.c | 2 |
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 | ||