]> git.baikalelectronics.ru Git - kernel.git/commit
spi: spi-fsl-dspi: Fix a resource leak in an error handling path
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Sun, 9 May 2021 19:12:27 +0000 (21:12 +0200)
committerMark Brown <broonie@kernel.org>
Mon, 10 May 2021 12:00:27 +0000 (13:00 +0100)
commitf7252fced15b6bdd1ef4ab120c9b9a87f3d9c084
tree4d9f8951bfc9acee07ea7b551a912f3a75a35e7e
parentf0e5e793f42499f2404f1cc738f8f5e1efab9d2c
spi: spi-fsl-dspi: Fix a resource leak in an error handling path

'dspi_request_dma()' should be undone by a 'dspi_release_dma()' call in the
error handling path of the probe function, as already done in the remove
function

Fixes: 4ca4e8bc6074 ("spi: spi-fsl-dspi: Add DMA support for Vybrid")
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Reviewed-by: Vladimir Oltean <olteanv@gmail.com>
Link: https://lore.kernel.org/r/d51caaac747277a1099ba8dea07acd85435b857e.1620587472.git.christophe.jaillet@wanadoo.fr
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-fsl-dspi.c