]> git.baikalelectronics.ru Git - kernel.git/commit
btrfs: fix transaction handle leak after verity rollback failure
authorFilipe Manana <fdmanana@suse.com>
Wed, 8 Sep 2021 15:29:26 +0000 (16:29 +0100)
committerDavid Sterba <dsterba@suse.com>
Fri, 17 Sep 2021 17:29:41 +0000 (19:29 +0200)
commitccbf4c9f9f4d262f9e468dc124a5cf1e3dd3404f
tree44dca0bba59f78b95b194480868c29712adc9e61
parenta154260c03fc3050126c3f2e1fee8fbab467cede
btrfs: fix transaction handle leak after verity rollback failure

During a verity rollback, if we fail to update the inode or delete the
orphan, we abort the transaction and return without releasing our
transaction handle. Fix that by releasing the handle.

Fixes: 1c6b5fc0ad3961 ("btrfs: initial fsverity support")
Fixes: 7dd5d20cb724a1 ("btrfs: verity metadata orphan items")
Reviewed-by: Boris Burkov <boris@bur.io>
Signed-off-by: Filipe Manana <fdmanana@suse.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/verity.c