Merge 4.14.86 into android-4.14-p
[GitHub/moto-9609/android_kernel_motorola_exynos9610.git] / crypto / ecc.c
index 633a9bcdc5746ae46845529d3fff02a0260e2e42..18f32f2a5e1c9a28bdda922316ea801b5c7392bd 100644 (file)
@@ -964,7 +964,7 @@ int ecc_gen_privkey(unsigned int curve_id, unsigned int ndigits, u64 *privkey)
         * DRBG with a security strength of 256.
         */
        if (crypto_get_default_rng())
-               err = -EFAULT;
+               return -EFAULT;
 
        err = crypto_rng_get_bytes(crypto_default_rng, (u8 *)priv, nbytes);
        crypto_put_default_rng();