aboutsummaryrefslogtreecommitdiffstats
path: root/lib/crypto/mpi/mpi-bit.c
diff options
context:
space:
mode:
authorThomas Fourier <[email protected]>2025-06-10 14:29:11 +0000
committerMadhavan Srinivasan <[email protected]>2025-07-09 03:45:10 +0000
commit760b9b4f6de9a33ca56a05f950cabe82138d25bd (patch)
treeed6cb26bed4582e67e5c68dc53015b491ae1ad16 /lib/crypto/mpi/mpi-bit.c
parentpowerpc: floppy: Add missing checks after DMA map (diff)
downloadkernel-760b9b4f6de9a33ca56a05f950cabe82138d25bd.tar.gz
kernel-760b9b4f6de9a33ca56a05f950cabe82138d25bd.zip
(powerpc/512) Fix possible `dma_unmap_single()` on uninitialized pointer
If the device configuration fails (if `dma_dev->device_config()`), `sg_dma_address(&sg)` is not initialized and the jump to `err_dma_prep` leads to calling `dma_unmap_single()` on `sg_dma_address(&sg)`. Signed-off-by: Thomas Fourier <[email protected]> Reviewed-by: Christophe Leroy <[email protected]> Signed-off-by: Madhavan Srinivasan <[email protected]> Link: https://patch.msgid.link/[email protected]
Diffstat (limited to 'lib/crypto/mpi/mpi-bit.c')
0 files changed, 0 insertions, 0 deletions