]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/blobdiff - crypto/drbg.c
crypto: drbg - Initialise mutex in drbg_healthcheck_sanity
[mirror_ubuntu-zesty-kernel.git] / crypto / drbg.c
index 30ec2a624b70c120fc3246ae406477996acd541f..57fd479b8f777f927d7f4b2690c91e6679817956 100644 (file)
@@ -1741,6 +1741,8 @@ static inline int __init drbg_healthcheck_sanity(void)
        if (!drbg)
                return -ENOMEM;
 
+       mutex_init(&drbg->drbg_mutex);
+
        /*
         * if the following tests fail, it is likely that there is a buffer
         * overflow as buf is much smaller than the requested or provided