diff options
author | Lukas Wunner <lukas@wunner.de> | 2020-12-07 09:17:01 +0100 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2020-12-07 14:18:47 +0000 |
commit | 373afef350a93519b4b8d636b0895da8650b714b (patch) | |
tree | 6a94a93c12a21a8474eae31d16ee2dff831e2fcd /drivers/spi/spi-qcom-qspi.c | |
parent | b8450e014214982a6df3e62a5bee6c37b94f6b98 (diff) | |
download | linux-373afef350a93519b4b8d636b0895da8650b714b.tar.gz linux-373afef350a93519b4b8d636b0895da8650b714b.tar.bz2 linux-373afef350a93519b4b8d636b0895da8650b714b.zip |
spi: davinci: Fix use-after-free on unbind
davinci_spi_remove() accesses the driver's private data after it's been
freed with spi_master_put().
Fix by moving the spi_master_put() to the end of the function.
Fixes: fe5fd2540947 ("spi: davinci: Use dma_request_chan() for requesting DMA channel")
Signed-off-by: Lukas Wunner <lukas@wunner.de>
Acked-by: Peter Ujfalusi <peter.ujfalusi@ti.com>
Cc: <stable@vger.kernel.org> # v4.7+
Link: https://lore.kernel.org/r/412f7eb1cf8990e0a3a2153f4c577298deab623e.1607286887.git.lukas@wunner.de
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'drivers/spi/spi-qcom-qspi.c')
0 files changed, 0 insertions, 0 deletions