Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit afc70ed0 authored by Al Viro's avatar Al Viro
Browse files

Fix a leak in affs_fill_super()



Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
parent b04da8bf
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -316,6 +316,8 @@ static int affs_fill_super(struct super_block *sb, void *data, int silent)
				&blocksize,&sbi->s_prefix,
				sbi->s_volume, &mount_flags)) {
		printk(KERN_ERR "AFFS: Error parsing options\n");
		kfree(sbi->s_prefix);
		kfree(sbi);
		return -EINVAL;
	}
	/* N.B. after this point s_prefix must be released */