Message ID | 1718702759-18914-1-git-send-email-quic_dikshita@quicinc.com (mailing list archive) |
---|---|
State | New |
Headers | show |
Series | [v3] media: venus: fix use after free bug in venus_remove due to race condition | expand |
diff --git a/drivers/media/platform/qcom/venus/core.c b/drivers/media/platform/qcom/venus/core.c index a712dd4..c139270 100644 --- a/drivers/media/platform/qcom/venus/core.c +++ b/drivers/media/platform/qcom/venus/core.c @@ -424,6 +424,7 @@ static void venus_remove(struct platform_device *pdev) struct device *dev = core->dev; int ret; + cancel_delayed_work_sync(&core->work); ret = pm_runtime_get_sync(dev); WARN_ON(ret < 0);