commit | 01ac94580ac2f7076394212ca963da7409016796 | [log] [tgz] |
---|---|---|
author | Dan Carpenter <dan.carpenter@oracle.com> | Fri Jun 17 12:16:19 2016 +0300 |
committer | Herbert Xu <herbert@gondor.apana.org.au> | Mon Jun 20 19:25:03 2016 +0800 |
tree | a63a5ac8cfe33d6cf7120992013e0828cf881e2e | |
parent | 79cc6ab8947bd238b64afddc56ed84ee65f012ef [diff] |
crypto: drbg - fix an error code in drbg_init_sym_kernel() We accidentally return PTR_ERR(NULL) which is success but we should return -ENOMEM. Fixes: 355912852115 ('crypto: drbg - use CTR AES instead of ECB AES') Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> Acked-by: Stephan Mueller <smueller@chronox.de> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>