diff options
author | Kent Overstreet <kent.overstreet@gmail.com> | 2022-01-08 19:07:32 -0500 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@gmail.com> | 2022-01-08 19:08:06 -0500 |
commit | 34665257d0551343ca3c895b965de429b847d460 (patch) | |
tree | 97aa4e83d4df2a1e46868b8e913935964b1da9bd | |
parent | 97ec357b13821411f08c5a76c1ccd8adeba7b302 (diff) |
bcachefs: Fix an error path in bch2_snapshot_node_create()
Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
-rw-r--r-- | fs/bcachefs/subvolume.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/bcachefs/subvolume.c b/fs/bcachefs/subvolume.c index 8aeb2e417a15..012d8e8c52c4 100644 --- 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); |