OSDN Git Service
(root)
/
sagit-ice-cold
/
kernel_xiaomi_msm8998.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b86280a
)
fs/ramfs/file-nommu.c: replace count*size kzalloc by kcalloc
author
Fabian Frederick
<fabf@skynet.be>
Fri, 8 Aug 2014 21:19:43 +0000
(14:19 -0700)
committer
Linus Torvalds
<torvalds@linux-foundation.org>
Fri, 8 Aug 2014 22:57:18 +0000
(15:57 -0700)
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>
fs/ramfs/file-nommu.c
patch
|
blob
|
history
diff --git
a/fs/ramfs/file-nommu.c
b/fs/ramfs/file-nommu.c
index
dda012a
..
bbafbde
100644
(file)
--- 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 = k
zalloc(lpages *
sizeof(struct page *), GFP_KERNEL);
+ pages = k
calloc(lpages,
sizeof(struct page *), GFP_KERNEL);
if (!pages)
goto out_free;