diff options
author | Uwe Kleine-König <u.kleine-koenig@pengutronix.de> | 2023-03-30 23:03:40 +0200 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2023-04-04 13:46:48 +0200 |
commit | 61f49171a43ab1f80c73c5c88c508770c461e0f2 (patch) | |
tree | 636a2c56fa0790e703d881633497f26c39ed08aa /drivers/spi/spi-gpio.c | |
parent | spi: intel-pci: Add support for Meteor Lake-S SPI serial flash (diff) | |
download | linux-61f49171a43ab1f80c73c5c88c508770c461e0f2.tar.xz linux-61f49171a43ab1f80c73c5c88c508770c461e0f2.zip |
spi: qup: Don't skip cleanup in remove's error path
Returning early in a platform driver's remove callback is wrong. In this
case the dma resources are not released in the error path. this is never
retried later and so this is a permanent leak. To fix this, only skip
hardware disabling if waking the device fails.
Fixes: 64ff247a978f ("spi: Add Qualcomm QUP SPI controller support")
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Link: https://lore.kernel.org/r/20230330210341.2459548-2-u.kleine-koenig@pengutronix.de
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'drivers/spi/spi-gpio.c')
0 files changed, 0 insertions, 0 deletions