From: Kent Overstreet Date: Tue, 22 Aug 2023 22:47:16 +0000 (-0400) Subject: bcachefs: Fix a double free on invalid bkey X-Git-Tag: v6.7-rc1~201^2~100 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=4491283f8d827bdfc6baed27028ae636494bdbac;p=thirdparty%2Fkernel%2Flinux.git bcachefs: Fix a double free on invalid bkey Signed-off-by: Kent Overstreet --- diff --git a/fs/bcachefs/btree_trans_commit.c b/fs/bcachefs/btree_trans_commit.c index e099fe5709620..f498513d35f39 100644 --- a/fs/bcachefs/btree_trans_commit.c +++ b/fs/bcachefs/btree_trans_commit.c @@ -801,7 +801,6 @@ static noinline int bch2_trans_commit_bkey_invalid(struct btree_trans *trans, un bch2_inconsistent_error(c); bch2_dump_trans_updates(trans); - printbuf_exit(err); return -EINVAL; }