summaryrefslogtreecommitdiff
path: root/crypto/rng.c
diff options
context:
space:
mode:
authorDan Carpenter <dan.carpenter@linaro.org>2023-10-30 12:02:59 +0300
committerHerbert Xu <herbert@gondor.apana.org.au>2023-11-17 19:16:29 +0800
commit8ae0b5942364e09147e4162cdf6d3e74d976a1be (patch)
tree567f16bdb5e67ac7d411e6b01c2ad347b256600e /crypto/rng.c
parenta587c5ee0a45dea9ed6fc3d695259da8dc7a5bb3 (diff)
downloadlinux-crypto-8ae0b5942364e09147e4162cdf6d3e74d976a1be.tar.gz
linux-crypto-8ae0b5942364e09147e4162cdf6d3e74d976a1be.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: 7096d7d6238c ("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 'crypto/rng.c')
0 files changed, 0 insertions, 0 deletions