Message ID | 20240914154030.180-1-kxwang23@m.fudan.edu.cn (mailing list archive) |
---|---|
State | Superseded |
Headers | show |
Series | [v2] i3c: master: svc: Fix use after free vulnerability in svc_i3c_master Driver Due to Race Condition | expand |
diff --git a/drivers/i3c/master/svc-i3c-master.c b/drivers/i3c/master/svc-i3c-master.c index 0a68fd1b81d4..e084ba648b4a 100644 --- a/drivers/i3c/master/svc-i3c-master.c +++ b/drivers/i3c/master/svc-i3c-master.c @@ -1775,6 +1775,7 @@ static void svc_i3c_master_remove(struct platform_device *pdev) { struct svc_i3c_master *master = platform_get_drvdata(pdev); + cancel_work_sync(&master->hj_work); i3c_master_unregister(&master->base); pm_runtime_dont_use_autosuspend(&pdev->dev);