aboutsummaryrefslogtreecommitdiffstats
path: root/fs/adfs/super.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/adfs/super.c')
-rw-r--r--fs/adfs/super.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/fs/adfs/super.c b/fs/adfs/super.c
index 82011019494c..959dbf1f8e63 100644
--- a/fs/adfs/super.c
+++ b/fs/adfs/super.c
@@ -339,11 +339,10 @@ static int adfs_fill_super(struct super_block *sb, void *data, int silent)
339 339
340 sb->s_flags |= MS_NODIRATIME; 340 sb->s_flags |= MS_NODIRATIME;
341 341
342 asb = kmalloc(sizeof(*asb), GFP_KERNEL); 342 asb = kzalloc(sizeof(*asb), GFP_KERNEL);
343 if (!asb) 343 if (!asb)
344 return -ENOMEM; 344 return -ENOMEM;
345 sb->s_fs_info = asb; 345 sb->s_fs_info = asb;
346 memset(asb, 0, sizeof(*asb));
347 346
348 /* set default options */ 347 /* set default options */
349 asb->s_uid = 0; 348 asb->s_uid = 0;