Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp2809451pxb; Sun, 15 Nov 2020 19:07:59 -0800 (PST) X-Google-Smtp-Source: ABdhPJwRxnsIIRbpeG9KNvcey0lsmwL4Ef6yRYvSMhqOdcC99emTGYj3MAdFh9SinlrjZSSKhDTQ X-Received: by 2002:aa7:cb02:: with SMTP id s2mr13534609edt.211.1605496078827; Sun, 15 Nov 2020 19:07:58 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605496078; cv=none; d=google.com; s=arc-20160816; b=FeAWsK3p+arphVFjSlywn5M7URZXhu4XltOUsWdNOYDZEiS2o4wSG1a/gzgQH3sq30 M/UzS1yjizZGXgwlcpw0b/R0zoRDkPTgGyNrJb2iLzPY0sPmvf34vkNEQz+yKG5vm9zs is0FDiRCfGRp6ZVF4vrWuKEtKTON3m+DN+NB+DkG8Et3Z6wfNhL8GkaL01rYa+f5v+2+ uDYPcihL6FBxCUjgUJzmCPxh7kmjONZht5c+49qkscegFGS8AEks92hT1IX+RElJYS7x sgMn6vpvGrmocKoUD3iZQ4rqii4lqf4CARXbKFYfe4vAE4eZ8Blh7GblVXOGNcd99xai ya9A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:subject:cc:to:from; bh=0LRl8dstLg1dAt84g/dhhmShWRj2xwkv7UqJNSj5DXE=; b=IvvbVHjiLH8eqx526t5aDSvTpjFbq5Lk1LQOAYS8YnQ2ecolvwC21PGUb9nRt6AP0S uO+lTh8PpIYwtA37dr3OIZ1mKt8h/KvVSzg/rux58nTV1LiONgglctVuNru+vTrb9Tzg +Jb0SmRkljT11950CO8JohXbRSGX+3vgrybX6mjGgUa0xeOo7+teLGo0SI+b3JKMikb5 JNjIY+nJKMsai20nfJfz40xxzNHeC+rWSc0vdTAXJHZJ/R14NuwVyS3Ah1fRo848qN// VVya/6aoukkVLYRRgG17KVvbgvgVKQjrMKlOXwPYnNzoVTQCu6HRYRznhcSnIPboQONq 8kSg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id hs8si6011106ejc.600.2020.11.15.19.07.36; Sun, 15 Nov 2020 19:07:58 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728180AbgKPBSA (ORCPT + 99 others); Sun, 15 Nov 2020 20:18:00 -0500 Received: from szxga04-in.huawei.com ([45.249.212.190]:7628 "EHLO szxga04-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728044AbgKPBSA (ORCPT ); Sun, 15 Nov 2020 20:18:00 -0500 Received: from DGGEMS412-HUB.china.huawei.com (unknown [172.30.72.58]) by szxga04-in.huawei.com (SkyGuard) with ESMTP id 4CZB5N5khSz15LYp; Mon, 16 Nov 2020 09:17:44 +0800 (CST) Received: from linux-ibm.site (10.175.102.37) by DGGEMS412-HUB.china.huawei.com (10.3.19.212) with Microsoft SMTP Server id 14.3.487.0; Mon, 16 Nov 2020 09:17:47 +0800 From: Xiongfeng Wang To: , , CC: , , , , Subject: [PATCH v2] drm/sun4i: dw-hdmi: fix error return code in sun8i_dw_hdmi_bind() Date: Mon, 16 Nov 2020 09:09:29 +0800 Message-ID: <1605488969-5211-1-git-send-email-wangxiongfeng2@huawei.com> X-Mailer: git-send-email 1.7.12.4 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.175.102.37] X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Fix to return a negative error code from the error handling case instead of 0 in function sun8i_dw_hdmi_bind(). Fixes: b7c7436a5ff0 ("drm/sun4i: Implement A83T HDMI driver") Reported-by: Hulk Robot Signed-off-by: Xiongfeng Wang Reviewed-by: Jernej Skrabec --- drivers/gpu/drm/sun4i/sun8i_dw_hdmi.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/gpu/drm/sun4i/sun8i_dw_hdmi.c b/drivers/gpu/drm/sun4i/sun8i_dw_hdmi.c index d4c0804..92add2c 100644 --- a/drivers/gpu/drm/sun4i/sun8i_dw_hdmi.c +++ b/drivers/gpu/drm/sun4i/sun8i_dw_hdmi.c @@ -208,6 +208,7 @@ static int sun8i_dw_hdmi_bind(struct device *dev, struct device *master, phy_node = of_parse_phandle(dev->of_node, "phys", 0); if (!phy_node) { dev_err(dev, "Can't found PHY phandle\n"); + ret = -EINVAL; goto err_disable_clk_tmds; } -- 1.7.12.4