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

bcachefs: Fix refcount put in sb_field_resize error path

parent 4a8521b6
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -232,7 +232,7 @@ struct bch_sb_field *bch2_sb_field_resize_id(struct bch_sb_handle *sb,
			struct bch_sb_handle *dev_sb = &ca->disk_sb;

			if (bch2_sb_realloc(dev_sb, le32_to_cpu(dev_sb->sb->u64s) + d)) {
				percpu_ref_put(&ca->ref);
				percpu_ref_put(&ca->io_ref);
				return NULL;
			}
		}