]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
reiserfs: Fix spurious unlock in reiserfs_fill_super() error handling
authorJan Kara <jack@suse.cz>
Thu, 12 Dec 2019 10:35:58 +0000 (11:35 +0100)
committerBen Hutchings <ben@decadent.org.uk>
Fri, 22 May 2020 20:19:17 +0000 (21:19 +0100)
commit777ca27b7eca0c1e7ed6e6bdb9a8e153d718888b
tree0c5d2c4a9dbd3ca6b888a35d5d0a6eebd0c53b2e
parent363f8afc312609a42015c8b8161a458e1749cd4c
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>
fs/reiserfs/super.c