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)
committerJan Kara <jack@suse.cz>
Mon, 16 Dec 2019 11:59:32 +0000 (12:59 +0100)
commit4d5c1adaf893b8aa52525d2b81995e949bcb3239
tree1a2bc753886f09aa6f4c79856c693c1b3816a459
parent5474ca7da6f34fa95e82edc747d5faa19cbdfb5c
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>
fs/reiserfs/super.c