aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/fpga/tests/fpga-bridge-test.c
diff options
context:
space:
mode:
authorKrzysztof Kozlowski <[email protected]>2025-05-01 15:01:59 +0000
committerMark Brown <[email protected]>2025-05-05 10:31:27 +0000
commit075812e45e9ef1b882aa66b9d122d8b8739aae59 (patch)
tree6726bb12a99f5ee0d45e086bc06c2c7d4ee0d648 /drivers/fpga/tests/fpga-bridge-test.c
parentspi: loopback-test: Simplify strange loopback value check (diff)
downloadkernel-075812e45e9ef1b882aa66b9d122d8b8739aae59.tar.gz
kernel-075812e45e9ef1b882aa66b9d122d8b8739aae59.zip
spi: atmel-quadspi: Fix printed error code during DMA setup
On dma_request_chan() failure driver NULL-ifies the 'rx_chan' and immediately uses it as PTR_ERR() so dev_err_probe() prints incorrect error code. Rework the code so proper error code will be printed and NULL-ifying of 'rx_chan' will happen in common error handling block (failure of DMA setup is not fatal for the driver and further code depends on 'rx_chan' being non-NULL for DMA operations). Reported by Smatch: drivers/spi/atmel-quadspi.c:1287 atmel_qspi_dma_init() warn: passing zero to 'PTR_ERR' Signed-off-by: Krzysztof Kozlowski <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Mark Brown <[email protected]>
Diffstat (limited to 'drivers/fpga/tests/fpga-bridge-test.c')
0 files changed, 0 insertions, 0 deletions