JFS: kzalloc conversion
this converts fs/jfs to kzalloc() usage. compile tested with make allyesconfig Signed-off-by: Eric Sesterhenn <snakebyte@gmx.de> Signed-off-by: Dave Kleikamp <shaggy@austin.ibm.com>
This commit is contained in:

committed by
Dave Kleikamp

parent
d9e902668e
commit
5b3030e390
@@ -395,10 +395,9 @@ static int jfs_fill_super(struct super_block *sb, void *data, int silent)
|
||||
if (!new_valid_dev(sb->s_bdev->bd_dev))
|
||||
return -EOVERFLOW;
|
||||
|
||||
sbi = kmalloc(sizeof (struct jfs_sb_info), GFP_KERNEL);
|
||||
sbi = kzalloc(sizeof (struct jfs_sb_info), GFP_KERNEL);
|
||||
if (!sbi)
|
||||
return -ENOSPC;
|
||||
memset(sbi, 0, sizeof (struct jfs_sb_info));
|
||||
sb->s_fs_info = sbi;
|
||||
sbi->sb = sb;
|
||||
|
||||
|
Reference in New Issue
Block a user