]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
crypto: drbg - fix an error code in drbg_init_sym_kernel()
authorDan Carpenter <dan.carpenter@oracle.com>
Fri, 17 Jun 2016 09:16:19 +0000 (12:16 +0300)
committerHerbert Xu <herbert@gondor.apana.org.au>
Mon, 20 Jun 2016 11:25:03 +0000 (19:25 +0800)
commit01ac94580ac2f7076394212ca963da7409016796
treea63a5ac8cfe33d6cf7120992013e0828cf881e2e
parent79cc6ab8947bd238b64afddc56ed84ee65f012ef
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>
crypto/drbg.c