summaryrefslogtreecommitdiff
path: root/crypto/lrw.c
diff options
context:
space:
mode:
authorWei Yongjun <weiyongjun1@huawei.com>2020-04-30 08:13:53 +0000
committerHerbert Xu <herbert@gondor.apana.org.au>2020-05-08 15:30:41 +1000
commit4e74a113fa130f456485cc3f2460ca743aadf8aa (patch)
tree7f04e1a58114b209eb1c2ec1bdb7dd84fc176e83 /crypto/lrw.c
parentd87bb7584bf1fed90dc9fbb048b80a1df1bac508 (diff)
downloadlinux-crypto-4e74a113fa130f456485cc3f2460ca743aadf8aa.tar.gz
linux-crypto-4e74a113fa130f456485cc3f2460ca743aadf8aa.zip
crypto: drbg - fix error return code in drbg_alloc_state()
Fix to return negative error code -ENOMEM from the kzalloc error handling case instead of 0, as done elsewhere in this function. Reported-by: Xiumei Mu <xmu@redhat.com> Fixes: 384577283cad ("crypto: drbg - add FIPS 140-2 CTRNG for noise source") Cc: <stable@vger.kernel.org> Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com> Reviewed-by: Stephan Mueller <smueller@chronox.de> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'crypto/lrw.c')
0 files changed, 0 insertions, 0 deletions