diff options
author | Hyungwon Hwang <human.hwang@samsung.com> | 2015-06-02 18:15:36 +0900 |
---|---|---|
committer | Hyungwon Hwang <human.hwang@samsung.com> | 2015-06-02 19:03:04 +0900 |
commit | 613dd6cec92929a8a718951b15f7eaec8017ab33 (patch) | |
tree | 2cf7c4790f4548e1cfd1c0cdb27c5139a17e313f | |
parent | 7950285c001e049251ec76e6918be98bb6542c73 (diff) | |
download | linux-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.c | 3 |
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); /** |