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

!12818 media: venus: fix use after free bug in venus_remove due to race condition

parents 695f80c3 70dba26a
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -366,6 +366,7 @@ static int 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);