projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b674bfa
)
bcachefs: Fix an error path in bch2_snapshot_node_create()
author
Kent Overstreet
<kent.overstreet@gmail.com>
Sun, 9 Jan 2022 00:07:32 +0000
(19:07 -0500)
committer
Kent Overstreet
<kent.overstreet@linux.dev>
Sun, 22 Oct 2023 21:09:22 +0000
(17:09 -0400)
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 8aeb2e417a157fd87874d94787ef5b83827919c8..012d8e8c52c4bfc42e7ab895b7c3572a125fd9ea 100644
(file)
--- a/
fs/bcachefs/subvolume.c
+++ b/
fs/bcachefs/subvolume.c
@@
-522,7
+522,7
@@
static int bch2_snapshot_node_create(struct btree_trans *trans, u32 parent,
n = bch2_trans_kmalloc(trans, sizeof(*n));
ret = PTR_ERR_OR_ZERO(n);
if (ret)
-
return ret
;
+
goto err
;
bkey_reassemble(&n->k_i, k);