summaryrefslogtreecommitdiffstats
path: root/block
diff options
context:
space:
mode:
authorDan Carpenter <dan.carpenter@linaro.org>2023-10-30 10:02:59 +0100
committerHerbert Xu <herbert@gondor.apana.org.au>2023-11-17 12:16:29 +0100
commitd872ca165cb67112f2841ef9c37d51ef7e63d1e4 (patch)
tree4362d1d267146d179960b36097da7aaf4f6d035f /block
parentcrypto: shash - don't exclude async statuses from error stats (diff)
downloadlinux-d872ca165cb67112f2841ef9c37d51ef7e63d1e4.tar.xz
linux-d872ca165cb67112f2841ef9c37d51ef7e63d1e4.zip
crypto: rsa - add a check for allocation failure
Static checkers insist that the mpi_alloc() allocation can fail so add a check to prevent a NULL dereference. Small allocations like this can't actually fail in current kernels, but adding a check is very simple and makes the static checkers happy. Fixes: 6637e11e4ad2 ("crypto: rsa - allow only odd e and restrict value in FIPS mode") Signed-off-by: Dan Carpenter <dan.carpenter@linaro.org> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'block')
0 files changed, 0 insertions, 0 deletions