aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/bin
diff options
context:
space:
mode:
authorAlain Volmat <[email protected]>2021-03-18 08:24:50 +0100
committerMark Brown <[email protected]>2021-03-19 12:24:09 +0000
commit79c6246ae8793448c05da86a4c82298eed8549b0 (patch)
tree1e8468df61a64f3e33fa8db441d5a3e861344738 /tools/perf/scripts/python/bin
parent92bad4a4c755cdf286f6b303dd482a573f2b89e6 (diff)
spi: stm32: Fix use-after-free on unbind
stm32_spi_remove() accesses the driver's private data after calling spi_unregister_master() even though that function releases the last reference on the spi_master and thereby frees the private data. Fix by switching over to the new devm_spi_alloc_master() helper which keeps the private data accessible until the driver has unbound. Fixes: 8d559a64f00b ("spi: stm32: drop devres version of spi_register_master") Reported-by: Lukas Wunner <[email protected]> Signed-off-by: Alain Volmat <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Mark Brown <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/bin')
0 files changed, 0 insertions, 0 deletions