Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

drm/exynos/ipp: remove only related commands on file close

On file close driver should remove only command nodes created
via this file.

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>

authored by

Andrzej Hajda and committed by
Inki Dae
21a825ee 945a0aad

+1 -4
+1 -4
drivers/gpu/drm/exynos/exynos_drm_ipp.c
··· 1681 1681 static void ipp_subdrv_close(struct drm_device *drm_dev, struct device *dev, 1682 1682 struct drm_file *file) 1683 1683 { 1684 - struct drm_exynos_file_private *file_priv = file->driver_priv; 1685 1684 struct exynos_drm_ippdrv *ippdrv = NULL; 1686 1685 struct ipp_context *ctx = get_ipp_context(dev); 1687 1686 struct drm_exynos_ipp_cmd_node *c_node, *tc_node; 1688 1687 int count = 0; 1689 - 1690 - DRM_DEBUG_KMS("for priv[0x%x]\n", (int)file_priv->ipp_dev); 1691 1688 1692 1689 list_for_each_entry(ippdrv, &exynos_drm_ippdrv_list, drv_list) { 1693 1690 mutex_lock(&ippdrv->cmd_lock); ··· 1693 1696 DRM_DEBUG_KMS("count[%d]ippdrv[0x%x]\n", 1694 1697 count++, (int)ippdrv); 1695 1698 1696 - if (c_node->dev == file_priv->ipp_dev) { 1699 + if (c_node->filp == file) { 1697 1700 /* 1698 1701 * userland goto unnormal state. process killed. 1699 1702 * and close the file.