summaryrefslogtreecommitdiffstats
path: root/sound/ac97/codec.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
commite0664ebcea6ac5e16da703409fb4bd61f8cd37d9 (patch)
tree69c363f2886a5031edd8a61ebf04884dd5f6a438 /sound/ac97/codec.c
parentc549226926ce9352dc6415931f4e96445759215d (diff)
downloadlinux-e0664ebcea6ac5e16da703409fb4bd61f8cd37d9.tar.gz
linux-e0664ebcea6ac5e16da703409fb4bd61f8cd37d9.tar.bz2
linux-e0664ebcea6ac5e16da703409fb4bd61f8cd37d9.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: db07cd26ac6a ("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 'sound/ac97/codec.c')
0 files changed, 0 insertions, 0 deletions