diff options
author | Jan Kara <jack@suse.cz> | 2019-12-12 11:35:58 +0100 |
---|---|---|
committer | Ben Hutchings <ben@decadent.org.uk> | 2020-05-22 21:19:17 +0100 |
commit | 777ca27b7eca0c1e7ed6e6bdb9a8e153d718888b (patch) | |
tree | 0c5d2c4a9dbd3ca6b888a35d5d0a6eebd0c53b2e | |
parent | 363f8afc312609a42015c8b8161a458e1749cd4c (diff) | |
download | linux-stable-777ca27b7eca0c1e7ed6e6bdb9a8e153d718888b.tar.gz |
reiserfs: Fix spurious unlock in reiserfs_fill_super() error handling
commit 4d5c1adaf893b8aa52525d2b81995e949bcb3239 upstream.
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>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
-rw-r--r-- | fs/reiserfs/super.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/reiserfs/super.c b/fs/reiserfs/super.c index b2d6e9fc72aa8..ffb7612e709be 100644 --- a/fs/reiserfs/super.c +++ b/fs/reiserfs/super.c @@ -1901,7 +1901,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 |