Commit bfbb76ec authored by Kent Overstreet's avatar Kent Overstreet
Browse files

bcachefs: Fix ref leak in write_super()



found with the new enumerated_ref code

Signed-off-by: default avatarKent Overstreet <kent.overstreet@linux.dev>
parent 4c327d03
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -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) {