Commit 0d8e3a15 authored by Christoph Hellwig's avatar Christoph Hellwig Committed by Linus Torvalds

[PATCH] fix double iget in romfs_fill_super

Acked-by: default avatarAl Viro <viro@parcelfarce.linux.theplanet.co.uk>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent 1265755d
......@@ -161,8 +161,7 @@ static int romfs_fill_super(struct super_block *s, void *data, int silent)
if (!root)
goto out;
s->s_root = d_alloc_root(iget(s, sz));
s->s_root = d_alloc_root(root);
if (!s->s_root)
goto outiput;
......
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