Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp1328788pxu; Mon, 23 Nov 2020 18:45:12 -0800 (PST) X-Google-Smtp-Source: ABdhPJzlBHIvF29am6Po1Y+JBN8Ee5Osyw6vMBRANTVLjtC3ctIv+w/qJCMqWuKnagn5FBzC3mau X-Received: by 2002:a17:906:2e57:: with SMTP id r23mr2230502eji.543.1606185912413; Mon, 23 Nov 2020 18:45:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606185912; cv=none; d=google.com; s=arc-20160816; b=0ry4xpRe2UWTU4EN4mr88cEDwwHq7uCWmvY5MA+7N2+YdMna4frbZ/l9b+zInuG/kl D64lZK44OixsbvNslRzuWcdMZ966oG6U6PwXW9qiMEinXKM7TTmGprbtFi/rTak1hnX/ ojIIRCNcodBc7y3YQvzU6eD+jzmK+OiXGF/+rCfMUIzKql1j2WhHV0N2A3yFs8J/Jydq JaRpjbhNLl3Dj1h0UOdjBsLaYw6N6F6u2vsFoa2uCsPzDog0P2D196b6pVn9IC2BlH9w zRyIR5fCMDF7Ay+ETVPpFFT/ncuJv+ElLytC13AsOEeD1/jV04fbOFYNFgj8eUY3UqBR blpQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=FYAot3IYshRuA+hndlijLaEesLTV5Mju+cS1xInNJMk=; b=0PRsY4IO6SVvVr/yQcHkEu4IqwNh3f2N07WrxDPYiMPOGBwo5i67zQe9BRa3isAu4a o4UYQQBEUHk6yLVfJ54ycmJbwP8EwgNqKufFrdAGtAtLu7fNpf2QbfKAWC88sMAxhQgG RFtkhS2ATJw0cdrhdCdlSeZXgeRGVzo9s69p3eD8wYqBM7HOdE9HZmr8tswaNJ5q4Ry3 PjuDlAAajYrRtc0wHp4cb27IspCByrZQTEwjyCIV9n2osgrSvLRQaAXre1lJLgfoU2ug cJv6tsj19fbusZ9IrBHvdiWqfOqD47PkqOOMAf1MJraqfq9PggNuFZHRPZzYZuTAYvpH kB/A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b="cVb/7l0w"; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id t20si7422992ejo.117.2020.11.23.18.44.49; Mon, 23 Nov 2020 18:45:12 -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; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b="cVb/7l0w"; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730986AbgKWN1N (ORCPT + 99 others); Mon, 23 Nov 2020 08:27:13 -0500 Received: from mail.kernel.org ([198.145.29.99]:43128 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730988AbgKWMb6 (ORCPT ); Mon, 23 Nov 2020 07:31:58 -0500 Received: from localhost (83-86-74-64.cable.dynamic.v4.ziggo.nl [83.86.74.64]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 0EB5520728; Mon, 23 Nov 2020 12:31:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1606134718; bh=NmcLqOzY0L6k1gax5UwQiGLZERegTRW0f+gWaW1D90Y=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=cVb/7l0wK+6jm2nwPiSGDk2ny/FB2wRc7N07phQpEhrm/KbcjFsPZNKVinh0fnN6l LPLD7yZOjCk3LQ1CRj5WOiGRe7AQ1P+wU0+rTcAmezTt81g59BbVi0qeUaBhvN7bwJ NCF5dfuu/tqKlsruSXwtVeXHWEZm6M2YTZ3SnKeo= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Hulk Robot , Xiongfeng Wang , Jernej Skrabec , Sasha Levin Subject: [PATCH 4.19 57/91] drm/sun4i: dw-hdmi: fix error return code in sun8i_dw_hdmi_bind() Date: Mon, 23 Nov 2020 13:22:17 +0100 Message-Id: <20201123121812.094602839@linuxfoundation.org> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20201123121809.285416732@linuxfoundation.org> References: <20201123121809.285416732@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Xiongfeng Wang [ Upstream commit 6654b57866b98230a270953dd34f67de17ab1708 ] 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 Signed-off-by: Jernej Skrabec Link: https://patchwork.freedesktop.org/patch/msgid/1605488969-5211-1-git-send-email-wangxiongfeng2@huawei.com Signed-off-by: Sasha Levin --- 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 31875b636434a..5073622cbb567 100644 --- a/drivers/gpu/drm/sun4i/sun8i_dw_hdmi.c +++ b/drivers/gpu/drm/sun4i/sun8i_dw_hdmi.c @@ -140,6 +140,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; } -- 2.27.0