mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-05 02:06:53 +07:00
drm/exynos/ipp: cancel works before command node clean
All pending works should be canceled prior to its removal. Signed-off-by: Andrzej Hajda <a.hajda@samsung.com> Reviewed-by: Joonyoung Shim <jy0922.shim@samsung.com> Signed-off-by: Inki Dae <inki.dae@samsung.com>
This commit is contained in:
parent
9b5bd1c420
commit
6f7d48ea65
@ -502,6 +502,11 @@ int exynos_drm_ipp_set_property(struct drm_device *drm_dev, void *data,
|
|||||||
static void ipp_clean_cmd_node(struct ipp_context *ctx,
|
static void ipp_clean_cmd_node(struct ipp_context *ctx,
|
||||||
struct drm_exynos_ipp_cmd_node *c_node)
|
struct drm_exynos_ipp_cmd_node *c_node)
|
||||||
{
|
{
|
||||||
|
/* cancel works */
|
||||||
|
cancel_work_sync(&c_node->start_work->work);
|
||||||
|
cancel_work_sync(&c_node->stop_work->work);
|
||||||
|
cancel_work_sync(&c_node->event_work->work);
|
||||||
|
|
||||||
/* delete list */
|
/* delete list */
|
||||||
list_del(&c_node->list);
|
list_del(&c_node->list);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user