summaryrefslogtreecommitdiff
path: root/drivers/fpga/tests
diff options
context:
space:
mode:
authorJunhao He <hejunhao3@huawei.com>2024-09-18 11:53:27 +0800
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2025-06-19 15:40:31 +0200
commitbece2360488b24effcf1e33a09d95607c99d7a4f (patch)
tree2d50e5028aa31c490be4150d07ad29b644440c66 /drivers/fpga/tests
parent30aea6b925ec8995094c8dd7e1e3d8d0234f3cfe (diff)
coresight: Fixes device's owner field for registered using coresight_init_driver()
[ Upstream commit 9f52aecc952ddf307571517d5c91136c8c4e87c9 ] The coresight_init_driver() of the coresight-core module is called from the sub coresgiht device (such as tmc/stm/funnle/...) module. It calls amba_driver_register() and Platform_driver_register(), which are macro functions that use the coresight-core's module to initialize the caller's owner field. Therefore, when the sub coresight device calls coresight_init_driver(), an incorrect THIS_MODULE value is captured. The sub coesgiht modules can be removed while their callbacks are running, resulting in a general protection failure. Add module parameter to coresight_init_driver() so can be called with the module of the callback. Fixes: 075b7cd7ad7d ("coresight: Add helpers registering/removing both AMBA and platform drivers") Signed-off-by: Junhao He <hejunhao3@huawei.com> Signed-off-by: Suzuki K Poulose <suzuki.poulose@arm.com> Link: https://lore.kernel.org/r/20240918035327.9710-1-hejunhao3@huawei.com Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'drivers/fpga/tests')
0 files changed, 0 insertions, 0 deletions