diff options
author | 2022-07-13 10:56:55 +0800 | |
---|---|---|
committer | 2022-07-13 13:48:58 +0100 | |
commit | e82c6d62a1f2347cde69c169fcf37e4d26f89b98 (patch) | |
tree | 01c4ee65fc2ada5e1a185bd1a0bc676259b73c1d /tools/perf/scripts/python/call-graph-from-sql.py | |
parent | spi: remove duplicate parameters check in acpi_spi_add_resource() (diff) | |
download | linux-dev-e82c6d62a1f2347cde69c169fcf37e4d26f89b98.tar.xz linux-dev-e82c6d62a1f2347cde69c169fcf37e4d26f89b98.zip |
spi: microchip-core: fix UAF in mchp_corespi_remove()
When using devm_spi_register_master(), the unregister function will
be called in devres_release_all() which is called after ->remove(),
so remove spi_unregister_master() andspi_master_put().
Fixes: 9ac8d17694b6 ("spi: add support for microchip fpga spi controllers")
Signed-off-by: Yang Yingliang <yangyingliang@huawei.com>
Reviewed-by: Conor Dooley <conor.dooley@microchip.com>
Link: https://lore.kernel.org/r/20220713025657.3524506-2-yangyingliang@huawei.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/call-graph-from-sql.py')
0 files changed, 0 insertions, 0 deletions