diff options
author | Navid Emamdoost <navid.emamdoost@gmail.com> | 2019-09-30 06:46:01 +0300 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2019-10-01 20:39:12 +0300 |
commit | 057b8945f78f76d0b04eeb5c27cd9225e5e7ad86 (patch) | |
tree | 3eced86d3ef37df84a2cf7c36a7907275d5c91e1 /drivers/spi/spi-stm32-qspi.c | |
parent | d3b0ffa1d75d5305ebe34735598993afbb8a869d (diff) | |
download | linux-057b8945f78f76d0b04eeb5c27cd9225e5e7ad86.tar.xz |
spi: lpspi: fix memory leak in fsl_lpspi_probe
In fsl_lpspi_probe an SPI controller is allocated either via
spi_alloc_slave or spi_alloc_master. In all but one error cases this
controller is put by going to error handling code. This commit fixes the
case when pm_runtime_get_sync fails and it should go to the error
handling path.
Fixes: 944c01a889d9 ("spi: lpspi: enable runtime pm for lpspi")
Signed-off-by: Navid Emamdoost <navid.emamdoost@gmail.com>
Link: https://lore.kernel.org/r/20190930034602.1467-1-navid.emamdoost@gmail.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'drivers/spi/spi-stm32-qspi.c')
0 files changed, 0 insertions, 0 deletions