blob: 3998fd2f56b0eb52e6c47124b50fead6177b58fb [file] [log] [blame]
From b999a2296d894e6af3c5db39ea812592079b3bf9 Mon Sep 17 00:00:00 2001
From: Jan Kara <>
Date: Thu, 12 Dec 2019 11:35:58 +0100
Subject: [PATCH] reiserfs: Fix spurious unlock in reiserfs_fill_super() error
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 <>
Signed-off-by: Paul Gortmaker <>
diff --git a/fs/reiserfs/super.c b/fs/reiserfs/super.c
index 4f20da6ec324..7a796b5b6643 100644
--- a/fs/reiserfs/super.c
+++ b/fs/reiserfs/super.c
@@ -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;