summaryrefslogtreecommitdiff
path: root/crypto/ecc.c
diff options
context:
space:
mode:
authorJames Morris <jmorris@namei.org>2018-02-21 08:21:41 -0800
committerJames Morris <jmorris@namei.org>2018-02-21 08:21:41 -0800
commit45ce5d915020b8c76238e123748e0eb6e9ddd6ad (patch)
tree916682ca7617ad686d2f8f9cac41ec4e9c432b00 /crypto/ecc.c
parent4a06f454768a7e11e8f10b900b450786546cbba1 (diff)
parent17a3638239bb39acce5f03e779c69bc0e4a5c736 (diff)
downloadlinux-crypto-45ce5d915020b8c76238e123748e0eb6e9ddd6ad.tar.gz
linux-crypto-45ce5d915020b8c76238e123748e0eb6e9ddd6ad.zip
Merge tag 'v4.16-rc2' into next-general
Sync to Linux 4.16-rc2 for developers to work against.
Diffstat (limited to 'crypto/ecc.c')
-rw-r--r--crypto/ecc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/ecc.c b/crypto/ecc.c
index 633a9bcd..18f32f2a 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)
* 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();