summaryrefslogtreecommitdiff
path: root/include/net/aligned_data.h
diff options
context:
space:
mode:
authorKees Cook <kees@kernel.org>2026-02-06 19:49:54 -0800
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2026-02-16 10:19:44 +0100
commit2ed27b5a1174351148c3adbfc0cd86d54072ba2e (patch)
treeaeb5ae6f8fac425c84d16220451ce013ef989220 /include/net/aligned_data.h
parent62c89e1992c867a3e701a6bd60a168c59a62b159 (diff)
crypto: omap - Allocate OMAP_CRYPTO_FORCE_COPY scatterlists correctly
commit 1562b1fb7e17c1b3addb15e125c718b2be7f5512 upstream. The existing allocation of scatterlists in omap_crypto_copy_sg_lists() was allocating an array of scatterlist pointers, not scatterlist objects, resulting in a 4x too small allocation. Use sizeof(*new_sg) to get the correct object size. Fixes: 74ed87e7e7f7 ("crypto: omap - add base support library for common routines") Signed-off-by: Kees Cook <kees@kernel.org> Acked-by: Herbert Xu <herbert@gondor.apana.org.au> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include/net/aligned_data.h')
0 files changed, 0 insertions, 0 deletions