dri-devel Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] drm: exynos: fix gem-prime support
@ 2012-03-06 14:07 Tomasz Stanislawski
  0 siblings, 0 replies; only message in thread
From: Tomasz Stanislawski @ 2012-03-06 14:07 UTC (permalink / raw)
  To: dri-devel
  Cc: '???/Mobile S/W Platform Lab.(???)/E3(??)/????',
	'박경민', Marek Szyprowski

From: Tomasz Stanislawski <t.stanislaws@samsung.com>

Fix error handling of dma_buf_export in exynos-drm driver.

Signed-off-by: Tomasz Stanislawski <t.stanislaws@samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
---
 drivers/gpu/drm/exynos/exynos_drm_dmabuf.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/drivers/gpu/drm/exynos/exynos_drm_dmabuf.c b/drivers/gpu/drm/exynos/exynos_drm_dmabuf.c
index cbb6ad4..5f41de5 100644
--- a/drivers/gpu/drm/exynos/exynos_drm_dmabuf.c
+++ b/drivers/gpu/drm/exynos/exynos_drm_dmabuf.c
@@ -200,7 +200,8 @@ int exynos_dmabuf_prime_handle_to_fd(struct drm_device *drm_dev,
 	 */
 	obj->export_dma_buf = dma_buf_export(obj, &exynos_dmabuf_ops,
 						obj->size, 0600);
-	if (!obj->export_dma_buf) {
+	if (IS_ERR(obj->export_dma_buf)) {
+		DRM_DEBUG_KMS("failed to export dmabuf.\n");
 		ret = PTR_ERR(obj->export_dma_buf);
 		goto err2;
 	}
-- 
1.7.5.4

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2012-03-06 14:07 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-03-06 14:07 [PATCH] drm: exynos: fix gem-prime support Tomasz Stanislawski

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