aboutsummaryrefslogtreecommitdiff
path: root/tools/testing/selftests/bpf/prog_tests/autoload.c
diff options
context:
space:
mode:
authorMarkus Elfring <[email protected]>2024-09-18 15:05:29 +0200
committerMikulas Patocka <[email protected]>2024-09-18 18:10:40 +0200
commitc5391c0e04f1b6ede3623962192b08a4eb224491 (patch)
tree1877d7dfdb0d61d3a628d5ba8d0d62a68c63427c /tools/testing/selftests/bpf/prog_tests/autoload.c
parentc8691cd0fc11197515ed148de0780d927bfca38b (diff)
dm-crypt: Use up_read() together with key_put() only once in crypt_set_keyring_key()
The combination of the calls “up_read(&key->sem)” and “key_put(key)” was immediately used after a return code check for a set_key() call in this function implementation. Thus use such a function call pair only once instead directly before the check. This issue was transformed by using the Coccinelle software. Signed-off-by: Markus Elfring <[email protected]> Signed-off-by: Mikulas Patocka <[email protected]>
Diffstat (limited to 'tools/testing/selftests/bpf/prog_tests/autoload.c')
0 files changed, 0 insertions, 0 deletions