Message ID | 20170425031616.12664-1-weiyj.lk@gmail.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org> Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 6ABCE603F2 for <patchwork-linux-arm@patchwork.kernel.org>; Tue, 25 Apr 2017 03:17:05 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 67A0F2815E for <patchwork-linux-arm@patchwork.kernel.org>; Tue, 25 Apr 2017 03:17:05 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 5BA3E28438; Tue, 25 Apr 2017 03:17:05 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,DKIM_VALID,FREEMAIL_FROM autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 310A52815E for <patchwork-linux-arm@patchwork.kernel.org>; Tue, 25 Apr 2017 03:17:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:To :From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=6cUFG6eF8nflk6bChvor4Zhy+Tbw3F0Kt/2y5by2nxk=; b=FQOL2uPiJ+h6rd e80P6OIUVbh+Vmx2HBBLTSD9PmNoIt1+SThLlNdvMYPh9qYA1HSpC6CCHxndLMT+kjhRaXGjCF0om 9Sq969T9XAZ2niIpKULDfcxDH8Z1ZdUXi2z0kKIJgh+/8ipsov78KmxVRo5C1GVoIf5c1BPGoOg0m GLxfchbjikwd+Bl2CaUp+tIhOu+/e0GFl4g1y6yV4SpIX0QQSx8c7TIXY/bnitMMeckBSV9bv5uRr zM+T/Jv7zoAnIlhIt2U/S2ZunYRt6ZuPJ/7yDIle+ycFYDo8i9NmtgBgxV/r7LuzytBoEg1dX4hmv 9iNk4BLwPDfVUs6fppqQ==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1d2qyJ-0006wv-Ey; Tue, 25 Apr 2017 03:16:59 +0000 Received: from mail-pf0-x243.google.com ([2607:f8b0:400e:c00::243]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1d2qyG-0006ts-BB; Tue, 25 Apr 2017 03:16:58 +0000 Received: by mail-pf0-x243.google.com with SMTP id v14so6286367pfd.3; Mon, 24 Apr 2017 20:16:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=YFREqXPZoMbLDO8q7Wht/o01G6iGNtQvX5e/Bvr8SYs=; b=NGLwUxYotnumbRO0SxsVwZ6x+V80RR0SEWvus8C+YYqL4GJo2jLBiTTRtRniPA9WkB HmvWv/WQkLkSScrPreARBg8n0F5JQeANiXJzAGApy8DCR3+8u27PTP1rpal63BNypzaC Awtb4BdtoUOceuYQiK4Gq/xpG+k8DWSeffKdDMgZ0Ft84IAwH+2T53sRhlDJdmYUwz43 vdc3oz70qWBhZqOf30IqnKdwTucNKQOqYm6PzvG1ar1gNzcdwbDpCKLWYuS4MYz0vcXj cdi7HB61st55RcvEzfrLcZzdM0V0WpnpBuVeyTDPJ+X5azfphYFRTQg6bTEjN3QGyDZN oxrw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=YFREqXPZoMbLDO8q7Wht/o01G6iGNtQvX5e/Bvr8SYs=; b=hVmjF+kzxFz8iBamw2QxMm/KdnreL9sbJvZ0JKbx4PdraBbqvBs7hmDG1+CH2MdPOv m7YgJxZjrFOb59PE0d3xWiC/0uBStuU8fpWLlQ6iBcE/8K9gUfnpvF1K/oLJzQmfnzy+ IP3TZwWPTtY1TPlcBYzcXPH790d31FHiJbVMR1JGoXP20S99rsebGaVgtospX0MMDBNJ HE4HQ7RlhhqzsKg8H5VAdGGJUxi7OtWq37TESOFLE8LGMs4rZ1/a7NNp013WiaG62O9S B6zO1OWq9pXQ9fBbL/iIxD9Y4wvAkAF7WGdKVSLwquhnV8d4HFguEuVlpuAeLGqZVSMQ DiPA== X-Gm-Message-State: AN3rC/59tz+MQ2r2ccBb3e9STs+bp3lidZrdp+GoARw1p/sUOW89rldT Y4lUjuyk9+2cfw== X-Received: by 10.99.185.66 with SMTP id v2mr26445737pgo.165.1493090182779; Mon, 24 Apr 2017 20:16:22 -0700 (PDT) Received: from localhost.localdomain.localdomain (ec2-52-192-197-227.ap-northeast-1.compute.amazonaws.com. [52.192.197.227]) by smtp.gmail.com with ESMTPSA id f62sm33064898pfb.84.2017.04.24.20.16.19 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 24 Apr 2017 20:16:22 -0700 (PDT) From: Wei Yongjun <weiyj.lk@gmail.com> To: Mark Yao <mark.yao@rock-chips.com>, David Airlie <airlied@linux.ie>, Heiko Stuebner <heiko@sntech.de>, Chris Zhong <zyw@rock-chips.com> Subject: [PATCH -next] drm/rockchip: cdn-dp: fix return value check in cdn_dp_probe() Date: Tue, 25 Apr 2017 03:16:16 +0000 Message-Id: <20170425031616.12664-1-weiyj.lk@gmail.com> X-Mailer: git-send-email 2.9.3 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170424_201656_417115_6DF29555 X-CRM114-Status: UNSURE ( 9.04 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: <linux-arm-kernel.lists.infradead.org> List-Unsubscribe: <http://lists.infradead.org/mailman/options/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=unsubscribe> List-Archive: <http://lists.infradead.org/pipermail/linux-arm-kernel/> List-Post: <mailto:linux-arm-kernel@lists.infradead.org> List-Help: <mailto:linux-arm-kernel-request@lists.infradead.org?subject=help> List-Subscribe: <http://lists.infradead.org/mailman/listinfo/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=subscribe> Cc: linux-rockchip@lists.infradead.org, Wei Yongjun <weiyongjun1@huawei.com>, linux-arm-kernel@lists.infradead.org, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" <linux-arm-kernel-bounces@lists.infradead.org> Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP |
diff --git a/drivers/gpu/drm/rockchip/cdn-dp-core.c b/drivers/gpu/drm/rockchip/cdn-dp-core.c index 9ab67a6..6a4a113 100644 --- a/drivers/gpu/drm/rockchip/cdn-dp-core.c +++ b/drivers/gpu/drm/rockchip/cdn-dp-core.c @@ -1198,7 +1198,7 @@ static int cdn_dp_probe(struct platform_device *pdev) continue; port = devm_kzalloc(dev, sizeof(*port), GFP_KERNEL); - if (!dp) + if (!port) return -ENOMEM; port->extcon = extcon;