diff options
Diffstat (limited to 'crypto/ecc.c')
-rw-r--r-- | crypto/ecc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/ecc.c b/crypto/ecc.c index 633a9bcdc574..18f32f2a5e1c 100644 --- a/crypto/ecc.c +++ b/crypto/ecc.c | |||
@@ -964,7 +964,7 @@ int ecc_gen_privkey(unsigned int curve_id, unsigned int ndigits, u64 *privkey) | |||
964 | * DRBG with a security strength of 256. | 964 | * DRBG with a security strength of 256. |
965 | */ | 965 | */ |
966 | if (crypto_get_default_rng()) | 966 | if (crypto_get_default_rng()) |
967 | err = -EFAULT; | 967 | return -EFAULT; |
968 | 968 | ||
969 | err = crypto_rng_get_bytes(crypto_default_rng, (u8 *)priv, nbytes); | 969 | err = crypto_rng_get_bytes(crypto_default_rng, (u8 *)priv, nbytes); |
970 | crypto_put_default_rng(); | 970 | crypto_put_default_rng(); |