mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-02-19 19:30:27 -05:00
bcachefs: Fix ref leak in write_super()
found with the new enumerated_ref code Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
This commit is contained in:
@@ -1102,7 +1102,8 @@ int bch2_write_super(struct bch_fs *c)
|
||||
prt_str(&buf, ")");
|
||||
bch2_fs_fatal_error(c, ": %s", buf.buf);
|
||||
printbuf_exit(&buf);
|
||||
return -BCH_ERR_sb_not_downgraded;
|
||||
ret = -BCH_ERR_sb_not_downgraded;
|
||||
goto out;
|
||||
}
|
||||
|
||||
darray_for_each(online_devices, ca) {
|
||||
|
||||
Reference in New Issue
Block a user