summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHyungwon Hwang <human.hwang@samsung.com>2015-06-02 18:15:36 +0900
committerHyungwon Hwang <human.hwang@samsung.com>2015-06-02 19:03:04 +0900
commit613dd6cec92929a8a718951b15f7eaec8017ab33 (patch)
tree2cf7c4790f4548e1cfd1c0cdb27c5139a17e313f
parent7950285c001e049251ec76e6918be98bb6542c73 (diff)
downloadlinux-exynos-613dd6cec92929a8a718951b15f7eaec8017ab33.tar.gz
linux-exynos-613dd6cec92929a8a718951b15f7eaec8017ab33.tar.bz2
linux-exynos-613dd6cec92929a8a718951b15f7eaec8017ab33.zip
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. Change-Id: Id57a5e6d371125d85cde97cf03848ffbf0b8abfd Signed-off-by: Hyungwon Hwang <human.hwang@samsung.com>
-rw-r--r--drivers/gpu/drm/exynos/exynos_drm_ipp.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/gpu/drm/exynos/exynos_drm_ipp.c b/drivers/gpu/drm/exynos/exynos_drm_ipp.c
index 07ff4fc2cb5b..755e2519dc78 100644
--- a/drivers/gpu/drm/exynos/exynos_drm_ipp.c
+++ b/drivers/gpu/drm/exynos/exynos_drm_ipp.c
@@ -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);
/**