Skip to contentSkip to conversation

minor memleak in ext3 (catched by smatch)

PATCH New Alex Tomas 1 participant 1 message Mar 6, 2003

lore
Share & tools
lore

Alex Tomas

author
#0 lore raw

PATCH 1/1 minor memleak in ext3 (catched by smatch)

This minor memory leak has been catched by smatch. Thanks to Dan Carpenter!

super.c renamed from fs/ext3/super.c +1 -1
@@ -1154,7 +1154,7 @@
 		if (!bh) {
 			printk(KERN_ERR 
 			       "EXT3-fs: Can't read superblock on 2nd try.\n");
-			return -EINVAL;
+			goto out_fail;
 		}
 		es = (struct ext3_super_block *)(((char *)bh->b_data) + offset);
 		sbi->s_es = es;