summaryrefslogtreecommitdiff
path: root/fs/aufs/whout.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/aufs/whout.c')
-rw-r--r--fs/aufs/whout.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/fs/aufs/whout.c b/fs/aufs/whout.c
index a7f160efb..05ba0857b 100644
--- a/fs/aufs/whout.c
+++ b/fs/aufs/whout.c
@@ -881,15 +881,12 @@ struct au_whtmp_rmdir *au_whtmp_rmdir_alloc(struct super_block *sb, gfp_t gfp)
SiMustAnyLock(sb);
- whtmp = kmalloc(sizeof(*whtmp), gfp);
+ whtmp = kzalloc(sizeof(*whtmp), gfp);
if (unlikely(!whtmp)) {
whtmp = ERR_PTR(-ENOMEM);
goto out;
}
- whtmp->dir = NULL;
- whtmp->br = NULL;
- whtmp->wh_dentry = NULL;
/* no estimation for dir size */
rdhash = au_sbi(sb)->si_rdhash;
if (!rdhash)