diff options
| author | Kees Cook <kees@kernel.org> | 2026-02-06 19:49:54 -0800 |
|---|---|---|
| committer | Linus Torvalds <torvalds@linux-foundation.org> | 2026-02-10 08:43:21 -0800 |
| commit | 1562b1fb7e17c1b3addb15e125c718b2be7f5512 (patch) | |
| tree | 78f06eaa806160331e29ab4957abb4cc4d09554a /scripts/module-common.c | |
| parent | 08df88fa142f3ba298bf0f7840fa9187e2fb5956 (diff) | |
crypto: omap - Allocate OMAP_CRYPTO_FORCE_COPY scatterlists correctly
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>
Diffstat (limited to 'scripts/module-common.c')
0 files changed, 0 insertions, 0 deletions
