projects
/
linux-2.6-microblaze.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
15f11c1
)
bcachefs: Fix missing error handling in bch2_subvolume_delete()
author
Kent Overstreet
<kent.overstreet@gmail.com>
Tue, 9 Aug 2022 17:47:03 +0000
(13:47 -0400)
committer
Kent Overstreet
<kent.overstreet@linux.dev>
Sun, 22 Oct 2023 21:09:37 +0000
(17:09 -0400)
This fixes an assertion when the transaction has been unexpectedly
restarted.
Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
fs/bcachefs/subvolume.c
patch
|
blob
|
history
diff --git
a/fs/bcachefs/subvolume.c
b/fs/bcachefs/subvolume.c
index
b5b0f5e
..
24244bc
100644
(file)
--- a/
fs/bcachefs/subvolume.c
+++ b/
fs/bcachefs/subvolume.c
@@
-877,6
+877,8
@@
int bch2_subvolume_delete(struct btree_trans *trans, u32 subvolid)
goto err;
ret = bch2_snapshot_node_set_deleted(trans, snapid);
+ if (ret)
+ goto err;
h = bch2_trans_kmalloc(trans, sizeof(*h));
ret = PTR_ERR_OR_ZERO(h);