drm/exynos: ipp: fix wrong index referencing a config element 25/40325/1
authorHyungwon Hwang <human.hwang@samsung.com>
Tue, 2 Jun 2015 09:15:36 +0000 (18:15 +0900)
committerHyungwon Hwang <human.hwang@samsung.com>
Tue, 2 Jun 2015 10:03:04 +0000 (19:03 +0900)
Config depends on the opreation. So it must be referenced by an
operation id, not a property id.

Change-Id: Id57a5e6d371125d85cde97cf03848ffbf0b8abfd
Signed-off-by: Hyungwon Hwang <human.hwang@samsung.com>
drivers/gpu/drm/exynos/exynos_drm_ipp.c

index 07ff4fc..755e251 100644 (file)
@@ -486,8 +486,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);
 
        /**