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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 24 Feb 2020 07:36:36 +0000 (08:36 +0100)
commitaf77e76625be0a16a9f1338080225d3ed39f2f28
tree5c4fe0959a177d5dbc5988fba42aeb65b8389c3a
parent6107a895e383a5dc952067ef14cc4813162f62a0
reiserfs: Fix spurious unlock in reiserfs_fill_super() error handling

[ Upstream commit 4d5c1adaf893b8aa52525d2b81995e949bcb3239 ]

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: Sasha Levin <sashal@kernel.org>
fs/reiserfs/super.c