Commit 02b90ad2 authored by Alexander Viro's avatar Alexander Viro Committed by Linus Torvalds

[PATCH] d_alloc_root() fixes: afs

 - useless dput(NULL) on failure exit (would be a double-free if
   we ever got there with non-NULL dentry).
parent 1b56e3e5
......@@ -280,7 +280,6 @@ static int afs_fill_super(struct super_block *sb, void *data, int silent)
return 0;
error:
dput(root);
iput(inode);
afs_put_volume(as->volume);
kfree(as);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment