projects
/
linux-block.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4a8521b
)
bcachefs: Fix refcount put in sb_field_resize error path
author
Kent Overstreet
<kent.overstreet@linux.dev>
Fri, 3 May 2024 21:13:21 +0000
(17:13 -0400)
committer
Kent Overstreet
<kent.overstreet@linux.dev>
Mon, 6 May 2024 14:58:17 +0000
(10:58 -0400)
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
fs/bcachefs/super-io.c
patch
|
blob
|
blame
|
history
diff --git
a/fs/bcachefs/super-io.c
b/fs/bcachefs/super-io.c
index 08ea3dbbbe97ce11833fe79baa5fd87935919339..e7527d551e3c87903a71a9c7e8bbc20ba9994e4c 100644
(file)
--- a/
fs/bcachefs/super-io.c
+++ b/
fs/bcachefs/super-io.c
@@
-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;
}
}