diff options
| author | Thomas Fourier <[email protected]> | 2025-06-10 14:29:11 +0000 |
|---|---|---|
| committer | Madhavan Srinivasan <[email protected]> | 2025-07-09 03:45:10 +0000 |
| commit | 760b9b4f6de9a33ca56a05f950cabe82138d25bd (patch) | |
| tree | ed6cb26bed4582e67e5c68dc53015b491ae1ad16 /drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c | |
| parent | powerpc: floppy: Add missing checks after DMA map (diff) | |
| download | kernel-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 'drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c')
0 files changed, 0 insertions, 0 deletions
