diff options
author | Tudor Ambarus <[email protected]> | 2024-02-07 12:04:24 +0000 |
---|---|---|
committer | Mark Brown <[email protected]> | 2024-02-08 16:33:34 +0000 |
commit | e9c49effde70fb4b10d0ad9c94b69fe6314fc608 (patch) | |
tree | c3f940a7bd672d91b4e2df8f25332835f978ee11 | |
parent | 5d7f4f4367079992c7a1bb1654ffea87ddc82be8 (diff) |
spi: s3c64xx: check return code of dmaengine_slave_config()
Check the return code of dmaengine_slave_config().
Reviewed-by: Sam Protsenko <[email protected]>
Signed-off-by: Tudor Ambarus <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Mark Brown <[email protected]>
-rw-r--r-- | drivers/spi/spi-s3c64xx.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/spi/spi-s3c64xx.c b/drivers/spi/spi-s3c64xx.c index 8c76894d0eb1..5da82013e17b 100644 --- a/drivers/spi/spi-s3c64xx.c +++ b/drivers/spi/spi-s3c64xx.c @@ -303,7 +303,9 @@ static int prepare_dma(struct s3c64xx_spi_dma_data *dma, config.dst_maxburst = 1; } config.direction = dma->direction; - dmaengine_slave_config(dma->ch, &config); + ret = dmaengine_slave_config(dma->ch, &config); + if (ret) + return ret; desc = dmaengine_prep_slave_sg(dma->ch, sgt->sgl, sgt->nents, dma->direction, DMA_PREP_INTERRUPT); |