projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
84ee353
)
befs: replace kmalloc/memset 0 by kzalloc
author
Fabian Frederick
<
[email protected]
>
Thu, 3 Apr 2014 21:50:21 +0000
(14:50 -0700)
committer
Linus Torvalds
<
[email protected]
>
Thu, 3 Apr 2014 23:21:24 +0000
(16:21 -0700)
Use kzalloc for clean fs_info allocation like other filesystems.
Signed-off-by: Fabian Frederick <
[email protected]
>
Signed-off-by: Andrew Morton <
[email protected]
>
Signed-off-by: Linus Torvalds <
[email protected]
>
fs/befs/linuxvfs.c
patch
|
blob
|
history
diff --git
a/fs/befs/linuxvfs.c
b/fs/befs/linuxvfs.c
index 845d2d690ce2dc2becddef70041a3e6b69440d62..a1a09462fe47b248e5a21e531aa5a17a8de542a3 100644
(file)
--- a/
fs/befs/linuxvfs.c
+++ b/
fs/befs/linuxvfs.c
@@
-791,7
+791,7
@@
befs_fill_super(struct super_block *sb, void *data, int silent)
save_mount_options(sb, data);
- sb->s_fs_info = k
malloc(sizeof
(*befs_sb), GFP_KERNEL);
+ sb->s_fs_info = k
zalloc(sizeof
(*befs_sb), GFP_KERNEL);
if (sb->s_fs_info == NULL) {
printk(KERN_ERR
"BeFS(%s): Unable to allocate memory for private "
@@
-799,7
+799,6
@@
befs_fill_super(struct super_block *sb, void *data, int silent)
goto unacquire_none;
}
befs_sb = BEFS_SB(sb);
- memset(befs_sb, 0, sizeof(befs_sb_info));
if (!parse_options((char *) data, &befs_sb->mount_opts)) {
befs_error(sb, "cannot parse mount options");