summaryrefslogtreecommitdiff
path: root/lib/crypto/mpi/mpi-mul.c
diff options
context:
space:
mode:
authorHerbert Xu <herbert@gondor.apana.org.au>2024-09-12 12:57:13 +0300
committerHerbert Xu <herbert@gondor.apana.org.au>2024-09-21 12:14:59 +0300
commit5124bc96162667766f6120b19f57a640c2eccb2a (patch)
treed96f475455e029c9d636af6c379f294b5748aad1 /lib/crypto/mpi/mpi-mul.c
parentce212d2afca47acd366a2e74c76fe82c31f785ab (diff)
downloadlinux-5124bc96162667766f6120b19f57a640c2eccb2a.tar.xz
crypto: caam - Pad SG length when allocating hash edesc
Because hardware will read in multiples of 4 SG entries, ensure the allocated length is always padded. This was already done by some callers of ahash_edesc_alloc, but ahash_digest was conspicuously missing. In any case, doing it in the allocation function ensures that the memory is always there. Reported-by: Guangwu Zhang <guazhang@redhat.com> Fixes: a5e5c13398f3 ("crypto: caam - fix S/G table passing page boundary") Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'lib/crypto/mpi/mpi-mul.c')
0 files changed, 0 insertions, 0 deletions