Skip to contentSkip to conversation

bcachefs: fix uninitialized variable in bch2_remount()

PATCH In review Thomas Bertschinger 2 participants 2 messages May 30, 2024

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 bcachefs: fix uninitialized variable in bch2_remount()

---
 fs/bcachefs/fs.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
fs/bcachefs/fs.c +1 -1
index d4e7d6dc61cb..b2a3a042349f 100644
@@ -1713,7 +1713,7 @@ static int bch2_remount(struct super_block *sb, int *flags,
 			struct bch_opts opts)
 {
 	struct bch_fs *c = sb->s_fs_info;
-	int ret;
+	int ret = 0;
 
 	opt_set(opts, read_only, (*flags & SB_RDONLY) != 0);
 
Signature · 1 line
2.45.0