diff options
| author | Miaoqian Lin <[email protected]> | 2025-10-27 09:20:50 +0000 |
|---|---|---|
| committer | Greg Kroah-Hartman <[email protected]> | 2025-10-28 14:26:47 +0000 |
| commit | eb4917f557d43c7a1c805dd73ffcdfddb2aba39a (patch) | |
| tree | d08caa2ad0d293823e353a4a33726ef53f9ed66a /scripts/basic/docproc.c | |
| parent | Linux 6.18-rc3 (diff) | |
| download | kernel-eb4917f557d43c7a1c805dd73ffcdfddb2aba39a.tar.gz kernel-eb4917f557d43c7a1c805dd73ffcdfddb2aba39a.zip | |
serial: amba-pl011: prefer dma_mapping_error() over explicit address checking
Check for returned DMA addresses using specialized dma_mapping_error()
helper which is generally recommended for this purpose by
Documentation/core-api/dma-api.rst:
"In some circumstances dma_map_single(), ...
will fail to create a mapping. A driver can check for these errors
by testing the returned DMA address with dma_mapping_error()."
Found via static analysis and this is similar to commit fa0308134d26
("ALSA: memalloc: prefer dma_mapping_error() over explicit address checking")
Fixes: 58ac1b379979 ("ARM: PL011: Fix DMA support")
Cc: stable <[email protected]>
Signed-off-by: Miaoqian Lin <[email protected]>
Reviewed-by: Gregory CLEMENT <[email protected]>
Link: https://patch.msgid.link/[email protected]
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'scripts/basic/docproc.c')
0 files changed, 0 insertions, 0 deletions
