]> 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)
commit44f32efc313e9d2f999c7c7d925881b6a0a87627
tree44dca0bba59f78b95b194480868c29712adc9e61
parent5a694897209bba6ee83eb65db4280fe22b6d338b
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: 94dd07c5dad213 ("btrfs: initial fsverity support")
Fixes: 010217a725a111 ("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