Message ID | 1396537864-29291-4-git-send-email-rahul.sharma@samsung.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <dri-devel-bounces@lists.freedesktop.org> X-Original-To: patchwork-dri-devel@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id CAFCBBFF02 for <patchwork-dri-devel@patchwork.kernel.org>; Thu, 3 Apr 2014 15:52:14 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 09BD7202A1 for <patchwork-dri-devel@patchwork.kernel.org>; Thu, 3 Apr 2014 15:52:14 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by mail.kernel.org (Postfix) with ESMTP id 3D5C020260 for <patchwork-dri-devel@patchwork.kernel.org>; Thu, 3 Apr 2014 15:52:13 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 5C2346E3DA; Thu, 3 Apr 2014 08:52:05 -0700 (PDT) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mailout2.samsung.com (mailout2.samsung.com [203.254.224.25]) by gabe.freedesktop.org (Postfix) with ESMTP id 83D8F6E348 for <dri-devel@lists.freedesktop.org>; Thu, 3 Apr 2014 08:12:13 -0700 (PDT) Received: from epcpsbgr3.samsung.com (u143.gpu120.samsung.co.kr [203.254.230.143]) by mailout2.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0N3G00H2TNKCPZB0@mailout2.samsung.com> for dri-devel@lists.freedesktop.org; Fri, 04 Apr 2014 00:12:12 +0900 (KST) Received: from epcpsbgm2.samsung.com ( [172.20.52.124]) by epcpsbgr3.samsung.com (EPCPMTA) with SMTP id FC.97.10092.C4A7D335; Fri, 04 Apr 2014 00:12:12 +0900 (KST) X-AuditID: cbfee68f-b7f156d00000276c-df-533d7a4ca44a Received: from epmmp2 ( [203.254.227.17]) by epcpsbgm2.samsung.com (EPCPMTA) with SMTP id C9.49.28157.C4A7D335; Fri, 04 Apr 2014 00:12:12 +0900 (KST) Received: from localhost.localdomain ([107.108.83.245]) by mmp2.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTPA id <0N3G00IVZNJBV460@mmp2.samsung.com>; Fri, 04 Apr 2014 00:12:12 +0900 (KST) From: Rahul Sharma <rahul.sharma@samsung.com> To: dri-devel@lists.freedesktop.org, linux-samsung-soc@vger.kernel.org Subject: [PATCH 3/7] drm/exynos: check for null pointers in error handling Date: Thu, 03 Apr 2014 20:41:00 +0530 Message-id: <1396537864-29291-4-git-send-email-rahul.sharma@samsung.com> X-Mailer: git-send-email 1.7.9.5 In-reply-to: <1396537864-29291-1-git-send-email-rahul.sharma@samsung.com> References: <1396537864-29291-1-git-send-email-rahul.sharma@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFvrCLMWRmVeSWpSXmKPExsWyRsSkRtenyjbYYMNTQ4srX9+zWUy6P4HF 4vuuL+wWM87vY7JY+CLeYsqiw6wWC/pdHdg9ZjdcZPHYOesuu8f97uNMHn1bVjF6fN4kF8Aa xWWTkpqTWZZapG+XwJUxfdILtoJT7BWXv75kb2A8zNbFyMEhIWAicfg8YxcjJ5ApJnHh3nqg MBeHkMBSRomlTbuZIBImEiuOL2CHSExnlDjw/QczhNPOJHFo7h1WkCo2AV2J2QefgY0SEXCT aDo8kxWkiFmgj1Fi76+jYAlhAS+Je//WgY1lEVCVONc2nR3E5hXwkPjzeQPUSQoScybZgIQ5 BTwlvnz+BNYqBFTyc98hsCskBOaxS7xY9ZoFYo6AxLfJh1ggemUlNh1ghrhaUuLgihssExiF FzAyrGIUTS1ILihOSi8y1itOzC0uzUvXS87P3cQIDPHT/57172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Y9fNEd+6l9femGOhnLkhVcX4y+Zh906Onq1ZU LJlkdm1vz79v59Zv3fP1ggNn+ZQwHn1fCdXI1VoLnNK2vdVUYinOSDTUYi4qTgQAbzlAQeUC AAA= DLP-Filter: Pass X-MTR: 20000000000000000@CPGS X-CFilter-Loop: Reflected X-Mailman-Approved-At: Thu, 03 Apr 2014 08:52:03 -0700 Cc: Paul Taysom <taysom@chromium.org>, joshi@samsung.com, Rahul Sharma <rahul.sharma@samsung.com> X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: Direct Rendering Infrastructure - Development <dri-devel.lists.freedesktop.org> List-Unsubscribe: <http://lists.freedesktop.org/mailman/options/dri-devel>, <mailto:dri-devel-request@lists.freedesktop.org?subject=unsubscribe> List-Archive: <http://lists.freedesktop.org/archives/dri-devel> List-Post: <mailto:dri-devel@lists.freedesktop.org> List-Help: <mailto:dri-devel-request@lists.freedesktop.org?subject=help> List-Subscribe: <http://lists.freedesktop.org/mailman/listinfo/dri-devel>, <mailto:dri-devel-request@lists.freedesktop.org?subject=subscribe> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" <dri-devel-bounces@lists.freedesktop.org> X-Spam-Status: No, score=-4.8 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP |
diff --git a/drivers/gpu/drm/exynos/exynos_hdmi.c b/drivers/gpu/drm/exynos/exynos_hdmi.c index f6d4435..5ed8973 100644 --- a/drivers/gpu/drm/exynos/exynos_hdmi.c +++ b/drivers/gpu/drm/exynos/exynos_hdmi.c @@ -2356,7 +2356,8 @@ static int hdmi_probe(struct platform_device *pdev) return 0; err_hdmiphy: - put_device(&hdata->hdmiphy_port->dev); + if (hdata->hdmiphy_port) + put_device(&hdata->hdmiphy_port->dev); err_ddc: put_device(&hdata->ddc_adpt->dev); return ret;