aboutsummaryrefslogtreecommitdiff
path: root/tools/testing/selftests/bpf/prog_tests/prog_array_init.c
diff options
context:
space:
mode:
authorFilipe Manana <[email protected]>2024-11-29 13:33:03 +0000
committerDavid Sterba <[email protected]>2024-12-03 20:27:02 +0100
commit9c803c474c6c002d8ade68ebe99026cc39c37f85 (patch)
tree89ae32616aec62d212a9ed5ee829a80e87e6861e /tools/testing/selftests/bpf/prog_tests/prog_array_init.c
parent951a3f59d268fe1397aaeb9a96fcb1944890c4cb (diff)
btrfs: fix missing snapshot drew unlock when root is dead during swap activation
When activating a swap file we acquire the root's snapshot drew lock and then check if the root is dead, failing and returning with -EPERM if it's dead but without unlocking the root's snapshot lock. Fix this by adding the missing unlock. Fixes: 60021bd754c6 ("btrfs: prevent subvol with swapfile from being deleted") Reviewed-by: Johannes Thumshirn <[email protected]> Reviewed-by: David Sterba <[email protected]> Reviewed-by: Qu Wenruo <[email protected]> Signed-off-by: Filipe Manana <[email protected]> Signed-off-by: David Sterba <[email protected]>
Diffstat (limited to 'tools/testing/selftests/bpf/prog_tests/prog_array_init.c')
0 files changed, 0 insertions, 0 deletions