Commit 4d5c1ada authored by Jan Kara's avatar Jan Kara
Browse files

reiserfs: Fix spurious unlock in reiserfs_fill_super() error handling



When we fail to allocate string for journal device name we jump to
'error' label which tries to unlock reiserfs write lock which is not
held. Jump to 'error_unlocked' instead.

Fixes: f32485be ("reiserfs: delay reiserfs lock until journal initialization")
Signed-off-by: default avatarJan Kara <jack@suse.cz>
parent 5474ca7d
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1948,7 +1948,7 @@ static int reiserfs_fill_super(struct super_block *s, void *data, int silent)
		if (!sbi->s_jdev) {
			SWARN(silent, s, "", "Cannot allocate memory for "
				"journal device name");
			goto error;
			goto error_unlocked;
		}
	}
#ifdef CONFIG_QUOTA