Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp1239215pxu; Mon, 23 Nov 2020 15:38:23 -0800 (PST) X-Google-Smtp-Source: ABdhPJyvlbjwfZcp59Em1DvNBvZ6BXSO1rhb/wCl9G/rEUZZ+1Ap0iMfy1atPowQ6sHEG8GWCOry X-Received: by 2002:a17:906:6987:: with SMTP id i7mr2007502ejr.18.1606174703742; Mon, 23 Nov 2020 15:38:23 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606174703; cv=none; d=google.com; s=arc-20160816; b=pbDJTb3UCcl2Uru53KalH+xZTnITXTMse+ARJWl12CDVtJ2BmMRnMJU/ziIim1ECXg 0V0TXEayIxrv3WhTAgjWFufqUAkYdeDfM4XY+hxcCc1hj3WXdQPjcTEUXZw16tWtPa+e QJeeMaULBBlfVepyyzZQsOTpCheQDpfCQqRMWxtKKinPoH8rpeeY80DA374O5NR220Hp U1bHwijoEG869Tc/8/CrpK87hdpS9FyZ2V4hnSHPsfMmxRd3iEfG70XJ1wKCJDa1TIz9 8BVYS+ohN/DY3YYlqY6jKyxwYJpiIvHY30Lo7BuDkLaHL1OmRF+x0WoqxTT3+c3ZEXfn fU9A== 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=T6o8gxPAqbYTAXF9Xir9yWwL6hX3UJN+RDjNxcKlQt0=; b=bqaAO+F333YXXELlifLLaY2l8eFylVrYP5CxJEbHUzJ2vHGW/cGDglgz+gpiXSaK7N iX2XXN/+xzGHHumzirC+yf71T28A9aDeFWoVQSj1MSNyajO6/gUDKtexctA7L6nloSqY J0+bfuBjegXBK6iZRqD5qhyhY6hO9hIrjlrnIukju8ATqItiTWfJg0gN0jTnUI51P3sK JG0PwwWXP44ZPavazsScV1oMMOAPON7pmgDjeHkMAbmRP7noiHIjyOhpPHvZ0ciuDi8r GPIk+GrZyfiyblGeA+pc+65fF0W+SJKjeRBj6jEQrT3lLnkaGZ2mLreeHCnCcIbm3YIN BVyQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=2sYvSBV2; 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 bl4si8431330ejb.79.2020.11.23.15.38.00; Mon, 23 Nov 2020 15:38:23 -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=2sYvSBV2; 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 S1732285AbgKWMje (ORCPT + 99 others); Mon, 23 Nov 2020 07:39:34 -0500 Received: from mail.kernel.org ([198.145.29.99]:51744 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732163AbgKWMjG (ORCPT ); Mon, 23 Nov 2020 07:39:06 -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 43B6A20857; Mon, 23 Nov 2020 12:39:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1606135145; bh=4Zq+7Ah7tZxgz9/wo4slOLmKpYlj87+6R8dsKcw5Jts=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=2sYvSBV2u4g0hlYC+ajhhyN0PtMjSB32AlCOA5U7ViRzoNBwfjAHV9BNwypwGXkEO 49Y8x0uJ8k0v05Ra0rfxgXmNBUqxGsipw91V8sAMYXpuBSEHDLHO9xOMCl9yC/cphL VV4PcIdXsOQYA0b+kkJPglzvVB+FN1dTw+eCzsT0= 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 5.4 091/158] drm/sun4i: dw-hdmi: fix error return code in sun8i_dw_hdmi_bind() Date: Mon, 23 Nov 2020 13:21:59 +0100 Message-Id: <20201123121824.321720277@linuxfoundation.org> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20201123121819.943135899@linuxfoundation.org> References: <20201123121819.943135899@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 a44dca4b0219e..12fe241956213 100644 --- a/drivers/gpu/drm/sun4i/sun8i_dw_hdmi.c +++ b/drivers/gpu/drm/sun4i/sun8i_dw_hdmi.c @@ -209,6 +209,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