aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/tools/perf/scripts/python/export-to-postgresql.py
diff options
context:
space:
mode:
authorAlain Volmat <alain.volmat@foss.st.com>2021-03-18 08:24:50 +0100
committerMark Brown <broonie@kernel.org>2021-03-19 12:24:09 +0000
commit79c6246ae8793448c05da86a4c82298eed8549b0 (patch)
tree1e8468df61a64f3e33fa8db441d5a3e861344738 /tools/perf/scripts/python/export-to-postgresql.py
parentspi: imx: Improve driver description (diff)
downloadwireguard-linux-79c6246ae8793448c05da86a4c82298eed8549b0.tar.xz
wireguard-linux-79c6246ae8793448c05da86a4c82298eed8549b0.zip
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 <lukas@wunner.de> Signed-off-by: Alain Volmat <alain.volmat@foss.st.com> Link: https://lore.kernel.org/r/1616052290-10887-1-git-send-email-alain.volmat@foss.st.com Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions