Add missing call to crypt_random_exit

We call crypt_random_init in init_crypto, but never call
crypt_random_exit. This change just copies what the crypt_backend
functions do, and calls crypt_random_exit in the descructor.
This commit is contained in:
joerichey@google.com
2018-07-11 01:07:10 -07:00
committed by Milan Broz
parent e07d40fc26
commit 25467243a6

View File

@@ -4538,4 +4538,5 @@ int crypt_activate_by_keyring(struct crypt_device *cd,
static void __attribute__((destructor)) libcryptsetup_exit(void)
{
crypt_backend_destroy();
crypt_random_exit();
}