Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d4a4e3c2 authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "msm: vidc: Delete core from driver list before free"

parents 24ed2ef0 ec0f2b43
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -711,6 +711,10 @@ static int msm_vidc_remove(struct platform_device *pdev)
	sysfs_remove_group(&pdev->dev.kobj, &msm_vidc_core_attr_group);
	dev_set_drvdata(&pdev->dev, NULL);
	mutex_destroy(&core->lock);

	mutex_lock(&vidc_driver->lock);
	list_del(&core->list);
	mutex_unlock(&vidc_driver->lock);
	kfree(core);
	return rc;
}