Unverified Commit aacf4228 authored by openeuler-ci-bot's avatar openeuler-ci-bot Committed by Gitee
Browse files

!1221 media: rkvdec: fix use after free bug in rkvdec_remove

parents 7ac36644 df1542dd
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -1077,6 +1077,8 @@ static int rkvdec_remove(struct platform_device *pdev)
{
	struct rkvdec_dev *rkvdec = platform_get_drvdata(pdev);

	cancel_delayed_work_sync(&rkvdec->watchdog_work);

	rkvdec_v4l2_cleanup(rkvdec);
	pm_runtime_disable(&pdev->dev);
	pm_runtime_dont_use_autosuspend(&pdev->dev);