linux-fsdevel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] hfsplus: super: Fix typo
@ 2023-08-13 21:38 Artem Chernyshev
  0 siblings, 0 replies; only message in thread
From: Artem Chernyshev @ 2023-08-13 21:38 UTC (permalink / raw)
  To: Andrew Morton
  Cc: Artem Chernyshev, Dongliang Mu, Christoph Hellwig, linux-fsdevel,
	linux-kernel, lvc-project

Assign correct value to error variable

Found by Linux Verification Center (linuxtesting.org) with SVACE.

Fixes: 52399b171dfa ("hfsplus: use raw bio access for the volume headers")
Signed-off-by: Artem Chernyshev <artem.chernyshev@red-soft.ru>
---
 fs/hfsplus/super.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/fs/hfsplus/super.c b/fs/hfsplus/super.c
index 1986b4f18a90..9f45582faf36 100644
--- a/fs/hfsplus/super.c
+++ b/fs/hfsplus/super.c
@@ -233,7 +233,7 @@ static int hfsplus_sync_fs(struct super_block *sb, int wait)
 				  sbi->s_backup_vhdr_buf, NULL, REQ_OP_WRITE |
 				  REQ_SYNC);
 	if (!error)
-		error2 = error;
+		error = error2;
 out:
 	mutex_unlock(&sbi->alloc_mutex);
 	mutex_unlock(&sbi->vh_mutex);
-- 
2.37.3


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2023-08-13 21:48 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-08-13 21:38 [PATCH] hfsplus: super: Fix typo Artem Chernyshev

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).