The built-in QUICC Engine interrupt controller leaves its cascaded
handlers and interrupt domain active when manually unbound. Suppress the
sysfs bind and unbind attributes so that they cannot outlive the
controller they dispatch through.
This issue was found by our static analysis tool under development.
Fixes: 4e0e161d3cc4 ("soc: fsl: qe: move calls of qe_ic_init out of
arch/powerpc/")
Signed-off-by: Guangshuo Li <[email protected]>
---
drivers/soc/fsl/qe/qe_ic.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/soc/fsl/qe/qe_ic.c b/drivers/soc/fsl/qe/qe_ic.c
index f9fc976a1dd4..71cb44e7d942 100644
--- a/drivers/soc/fsl/qe/qe_ic.c
+++ b/drivers/soc/fsl/qe/qe_ic.c
@@ -466,6 +466,7 @@ static struct platform_driver qe_ic_driver =
{
.driver = {
.name = "qe-ic",
+ .suppress_bind_attrs = true,
.of_match_table = qe_ic_ids,
},
.probe = qe_ic_init,
base-commit: 9592e3c9af2c97cd7220c22ecab97e0875a0f51a
--
2.43.0