bcachefs: Fix a double free on invalid bkey
authorKent Overstreet <kent.overstreet@linux.dev>
Tue, 22 Aug 2023 22:47:16 +0000 (18:47 -0400)
committerKent Overstreet <kent.overstreet@linux.dev>
Sun, 22 Oct 2023 21:10:11 +0000 (17:10 -0400)
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
fs/bcachefs/btree_trans_commit.c

index e099fe5709620509607e545749647faac420225c..f498513d35f397539df7494cb9684c6183ece968 100644 (file)
@@ -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;
 }