Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
dm-crypt: Use up_read() together with key_put() only once in crypt_se…
…t_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 <elfring@users.sourceforge.net> Signed-off-by: Mikulas Patocka <mpatocka@redhat.com>
- Loading branch information