mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-03-16 12:14:06 +00:00
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: f32485be83
("reiserfs: delay reiserfs lock until journal initialization")
Signed-off-by: Jan Kara <jack@suse.cz>
This commit is contained in:
parent
5474ca7da6
commit
4d5c1adaf8
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue