public inbox for linux-samsung-soc@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/2] drm/exynos: ipp: fix wrong index referencing a config element
@ 2015-06-09  3:45 Hyungwon Hwang
  2015-06-09  3:45 ` [PATCH 2/2] drm/exynos: ipp: validate a GEM handle with multiple planes Hyungwon Hwang
  2015-06-11 14:53 ` [PATCH 1/2] drm/exynos: ipp: fix wrong index referencing a config element Inki Dae
  0 siblings, 2 replies; 4+ messages in thread
From: Hyungwon Hwang @ 2015-06-09  3:45 UTC (permalink / raw)
  To: dri-devel, linux-samsung-soc, inki.dae
  Cc: sw0312.kim, jy0922.shim, Hyungwon Hwang

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>
---
 drivers/gpu/drm/exynos/exynos_drm_ipp.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/drivers/gpu/drm/exynos/exynos_drm_ipp.c b/drivers/gpu/drm/exynos/exynos_drm_ipp.c
index b7f1cbc..54c5cf4 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);
 
 	/**
-- 
1.9.1

^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2015-06-11 14:53 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-06-09  3:45 [PATCH 1/2] drm/exynos: ipp: fix wrong index referencing a config element Hyungwon Hwang
2015-06-09  3:45 ` [PATCH 2/2] drm/exynos: ipp: validate a GEM handle with multiple planes Hyungwon Hwang
2015-06-11 14:53   ` Inki Dae
2015-06-11 14:53 ` [PATCH 1/2] drm/exynos: ipp: fix wrong index referencing a config element Inki Dae

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox