Message ID | 1340648182-28329-2-git-send-email-subash.ramaswamy@linaro.org |
---|---|
State | Superseded |
Headers | show
Return-Path: <patch+caf_=linaro-patchwork=canonical.com@linaro.org> X-Original-To: patchwork@peony.canonical.com Delivered-To: patchwork@peony.canonical.com Received: from fiordland.canonical.com (fiordland.canonical.com [91.189.94.145]) by peony.canonical.com (Postfix) with ESMTP id 14E4323E4F for <patchwork@peony.canonical.com>; Mon, 25 Jun 2012 18:17:07 +0000 (UTC) Received: from mail-yx0-f180.google.com (mail-yx0-f180.google.com [209.85.213.180]) by fiordland.canonical.com (Postfix) with ESMTP id BCD33A189E4 for <linaro-patchwork@canonical.com>; Mon, 25 Jun 2012 18:17:06 +0000 (UTC) Received: by yenq6 with SMTP id q6so3372132yen.11 for <linaro-patchwork@canonical.com>; Mon, 25 Jun 2012 11:17:06 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-forwarded-to:x-forwarded-for:delivered-to:received-spf :dkim-signature:from:to:date:message-id:x-mailer:in-reply-to :references:cc:subject:x-beenthere:x-mailman-version:precedence :list-id:list-unsubscribe:list-archive:list-post:list-help :list-subscribe:mime-version:content-type:content-transfer-encoding :sender:errors-to:x-gm-message-state; bh=bioUBmR2CxF0N+OayMn0TUcyZ4K5ZwaPLIAZKfsEgjs=; b=Lj8JXPuc1flo1hqHuGqio8a2PhLTeNPERVDRIcclHSEQEoYmMlAWPVL68Z5qPAypH7 73Gx2sAcH+QqrcGuaWxMLntyMiJrQH07wilmN6t0fs4+enI3wSLR+2cjpvifcSzu5mqn 3SJkYMjoMHFlg5JTWa659d5B87DDxEYv5Lff47A2ld8KZy8Q8mkowCO/St6bcRLFDjXw V9Ey7EF+7Afdr0XeXftr0N4mYACVjfhUNsc/Wq4wwKhcQPzBumQ86WU6X4kgyw38e1UW PcWw1UGW4vc7wvsn71Etl5ndNMB1rr8+Q4SH/Kq6WnsMb6RMwwDwa5pEzkArVXHHDjoX ZvPw== Received: by 10.50.160.198 with SMTP id xm6mr9158815igb.0.1340648222702; Mon, 25 Jun 2012 11:17:02 -0700 (PDT) X-Forwarded-To: linaro-patchwork@canonical.com X-Forwarded-For: patch@linaro.org linaro-patchwork@canonical.com Delivered-To: patches@linaro.org Received: by 10.231.24.148 with SMTP id v20csp56348ibb; Mon, 25 Jun 2012 11:17:01 -0700 (PDT) Received: by 10.204.154.80 with SMTP id n16mr4549744bkw.112.1340648220565; Mon, 25 Jun 2012 11:17:00 -0700 (PDT) Received: from mombin.canonical.com (mombin.canonical.com. [91.189.95.16]) by mx.google.com with ESMTP id l2si11612296bka.51.2012.06.25.11.16.59; Mon, 25 Jun 2012 11:17:00 -0700 (PDT) Received-SPF: neutral (google.com: 91.189.95.16 is neither permitted nor denied by best guess record for domain of linaro-mm-sig-bounces@lists.linaro.org) client-ip=91.189.95.16; Authentication-Results: mx.google.com; spf=neutral (google.com: 91.189.95.16 is neither permitted nor denied by best guess record for domain of linaro-mm-sig-bounces@lists.linaro.org) smtp.mail=linaro-mm-sig-bounces@lists.linaro.org; dkim=neutral (body hash did not verify) header.i=@gmail.com Received: from localhost ([127.0.0.1] helo=mombin.canonical.com) by mombin.canonical.com with esmtp (Exim 4.71) (envelope-from <linaro-mm-sig-bounces@lists.linaro.org>) id 1SjDqJ-0003N6-SZ; Mon, 25 Jun 2012 18:16:56 +0000 Received: from mail-pz0-f42.google.com ([209.85.210.42]) by mombin.canonical.com with esmtp (Exim 4.71) (envelope-from <subashrp@gmail.com>) id 1SjDqI-0003Md-EP for linaro-mm-sig@lists.linaro.org; Mon, 25 Jun 2012 18:16:54 +0000 Received: by dalf4 with SMTP id f4so9467035dal.1 for <linaro-mm-sig@lists.linaro.org>; Mon, 25 Jun 2012 11:16:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:x-mailer:in-reply-to:references; bh=pRQLW+jkFzGlLLehNCMoQG/MobAO4lMPflXZ32SoTM8=; b=O3ATAJIoi7b8o27jcwpV7fM+my2AwylIGDQhAMCVEt2qJrCu3r8AOmiawjshPjzglU bQRDYWouMvJeuoF+3EPwP0bDbNkrEPRjSK+Fx/tWOMZkzRyDOyw9KKHymV4NBwV2JV27 sjBwEZDBERg+djOOrBhL7e9OYstFVQVfm3vNSKrrCuIlAjhbcDKMKx9txpuhCLQN4PA8 fZrY0nuwJ9V/Lyt5Fo8ABF+vh/4iBPkIMF/LAM+xkSvKQvB8oWf+zhRf5VumL3rk+nG6 WSgrI3ruEhXqsGKn+ZQsZ4jx2tQpj7B+ZPYdQTOJSK1aLBS7BTVc4qdUC7N0t3nw5okY dzTQ== Received: by 10.68.136.68 with SMTP id py4mr49625pbb.151.1340648212532; Mon, 25 Jun 2012 11:16:52 -0700 (PDT) Received: from localhost.localdomain (dhcp-172-22-52-171.mtv.corp.google.com [172.22.52.171]) by mx.google.com with ESMTPS id os3sm9192193pbb.41.2012.06.25.11.16.51 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 25 Jun 2012 11:16:51 -0700 (PDT) From: Subash Patel <subashrp@gmail.com> To: subash.ramaswamy@linaro.org Date: Mon, 25 Jun 2012 11:16:21 -0700 Message-Id: <1340648182-28329-2-git-send-email-subash.ramaswamy@linaro.org> X-Mailer: git-send-email 1.7.4.1 In-Reply-To: <1340648182-28329-1-git-send-email-subash.ramaswamy@linaro.org> References: <1340648182-28329-1-git-send-email-subash.ramaswamy@linaro.org> Cc: inki.dae@samsung.com, Subash Patel <subash.rp@samsung.com>, linux-samsung-soc@vger.kernel.org, dri-devel@lists.freedesktop.org, linaro-mm-sig@lists.linaro.org, airlied@redhat.com, olofj@chromium.org Subject: [Linaro-mm-sig] [PATCH 1/2] DRM: Exynos: return NULL if exynos_pages_to_sg fails X-BeenThere: linaro-mm-sig@lists.linaro.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: "Unified memory management interest group." <linaro-mm-sig.lists.linaro.org> List-Unsubscribe: <http://lists.linaro.org/mailman/options/linaro-mm-sig>, <mailto:linaro-mm-sig-request@lists.linaro.org?subject=unsubscribe> List-Archive: <http://lists.linaro.org/pipermail/linaro-mm-sig> List-Post: <mailto:linaro-mm-sig@lists.linaro.org> List-Help: <mailto:linaro-mm-sig-request@lists.linaro.org?subject=help> List-Subscribe: <http://lists.linaro.org/mailman/listinfo/linaro-mm-sig>, <mailto:linaro-mm-sig-request@lists.linaro.org?subject=subscribe> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: linaro-mm-sig-bounces@lists.linaro.org Errors-To: linaro-mm-sig-bounces@lists.linaro.org X-Gm-Message-State: ALoCoQktTBz8EGRiVmSEEZJvnWXjYhBzm9uHuZh7DgT7ccT+mGNPVYtMWMtWTIEPn4nmGv2BRL5F |
diff --git a/drivers/gpu/drm/exynos/exynos_drm_dmabuf.c b/drivers/gpu/drm/exynos/exynos_drm_dmabuf.c index 97325c1..52cf761 100644 --- a/drivers/gpu/drm/exynos/exynos_drm_dmabuf.c +++ b/drivers/gpu/drm/exynos/exynos_drm_dmabuf.c @@ -87,6 +87,10 @@ static struct sg_table * npages = buf->size / buf->page_size; sgt = exynos_pages_to_sg(buf->pages, npages, buf->page_size); + if (!sgt) { + DRM_DEBUG_PRIME("exynos_pages_to_sg returned NULL!\n"); + goto err_unlock; + } nents = dma_map_sg(attach->dev, sgt->sgl, sgt->nents, dir); DRM_DEBUG_PRIME("npages = %d buffer size = 0x%lx page_size = 0x%lx\n",