linux-loongson/arch/powerpc/platforms/512x
Thomas Fourier 760b9b4f6d (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 <fourier.thomas@gmail.com>
Reviewed-by: Christophe Leroy <christophe.leroy@csgroup.eu>
Signed-off-by: Madhavan Srinivasan <maddy@linux.ibm.com>
Link: https://patch.msgid.link/20250610142918.169540-2-fourier.thomas@gmail.com
2025-07-09 09:15:10 +05:30
..
clock-commonclk.c powerpc/mpc512x: fix resource printk format warning 2023-03-30 23:35:43 +11:00
Kconfig Kconfig file consolidation for v4.21 2018-12-29 13:40:29 -08:00
Makefile License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
mpc512x_generic.c powerpc/machdep: Define 'compatibles' property in ppc_md and use it 2024-03-03 22:20:29 +11:00
mpc512x_lpbfifo.c (powerpc/512) Fix possible dma_unmap_single() on uninitialized pointer 2025-07-09 09:15:10 +05:30
mpc512x_shared.c powerpc: Fix typos 2024-05-08 00:21:30 +10:00
mpc512x.h powerpc/512x: Make mpc512x_select_reset_compat() static 2023-08-18 17:02:40 +10:00
mpc5121_ads_cpld.c powerpc: Switch to irq_domain_create_*() 2025-05-16 21:06:11 +02:00
mpc5121_ads.c powerpc: Explicitly include correct DT includes 2023-08-02 22:22:19 +10:00
mpc5121_ads.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 152 2019-05-30 11:26:32 -07:00
pdm360ng.c powerpc/512x: Make pdm360ng_init() static 2023-11-30 13:24:55 +11:00