dri-devel Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Tomasz Stanislawski <t.stanislaws@samsung.com>
To: dri-devel@lists.freedesktop.org
Cc: "'???/Mobile S/W Platform Lab.(???)/E3(??)/????'"
	<inki.dae@samsung.com>, '박경민' <kyungmin.park@samsung.com>,
	"Marek Szyprowski" <m.szyprowski@samsung.com>
Subject: [PATCH] drm: exynos: fix gem-prime support
Date: Tue, 06 Mar 2012 15:07:01 +0100	[thread overview]
Message-ID: <4F561A05.8080402@samsung.com> (raw)

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

                 reply	other threads:[~2012-03-06 14:07 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4F561A05.8080402@samsung.com \
    --to=t.stanislaws@samsung.com \
    --cc=dri-devel@lists.freedesktop.org \
    --cc=inki.dae@samsung.com \
    --cc=kyungmin.park@samsung.com \
    --cc=m.szyprowski@samsung.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox