Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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: f32485be8397 ("reiserfs: delay reiserfs lock until journal initialization")
Signed-off-by: Jan Kara <jack@suse.cz>

Jan Kara 4d5c1ada 5474ca7d

+1 -1
+1 -1
fs/reiserfs/super.c
··· 1948 1948 if (!sbi->s_jdev) { 1949 1949 SWARN(silent, s, "", "Cannot allocate memory for " 1950 1950 "journal device name"); 1951 - goto error; 1951 + goto error_unlocked; 1952 1952 } 1953 1953 } 1954 1954 #ifdef CONFIG_QUOTA