Skip to contentSkip to conversation

fix double iget in romfs_fill_super

PATCH In review Christoph Hellwig 2 participants 2 messages Jan 8, 2005 VFS

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 fix double iget in romfs_fill_super

fs/romfs/inode.c +1 -2
@@ -161,8 +161,7 @@ static int romfs_fill_super(struct super
 	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;
 
#1 lore raw

ACK

Quoted 12 lines · Christoph Hellwig
fs/romfs/inode.c +1 -2
@@ -161,8 +161,7 @@ static int romfs_fill_super(struct super
 	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;