浏览代码

drm/exynos: ipp: fix wrong index referencing a config element

Config depends on the opreation. So it must be referenced by an
operation id, not a property id.

Signed-off-by: Hyungwon Hwang <human.hwang@samsung.com>
Signed-off-by: Inki Dae <inki.dae@samsung.com>
Hyungwon Hwang 10 年之前
父节点
当前提交
b224fa9f25
共有 1 个文件被更改,包括 1 次插入2 次删除
  1. 1 2
      drivers/gpu/drm/exynos/exynos_drm_ipp.c

+ 1 - 2
drivers/gpu/drm/exynos/exynos_drm_ipp.c

@@ -459,8 +459,7 @@ static int ipp_validate_mem_node(struct drm_device *drm_dev,
 	unsigned int bpp;
 	int i;
 
-	/* The property id should already be varified */
-	ipp_cfg = &c_node->property.config[m_node->prop_id];
+	ipp_cfg = &c_node->property.config[m_node->ops_id];
 	num_plane = drm_format_num_planes(ipp_cfg->fmt);
 
 	/**