Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp9085330pxu; Mon, 28 Dec 2020 06:16:39 -0800 (PST) X-Google-Smtp-Source: ABdhPJyfSICam4uVotrRHfPO0wxhEnM1tqsfLc/abQzvi0vTZ+VSb4MmY53JfHOAevBsFS8MVcJt X-Received: by 2002:a17:906:b0c2:: with SMTP id bk2mr42734587ejb.223.1609164999495; Mon, 28 Dec 2020 06:16:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1609164999; cv=none; d=google.com; s=arc-20160816; b=FcNQ7PdnMm5W2LiKoWd4oBL9fJ+GY31t/4fsjmMSXJXj+yMZ6xkzGz/ckXqDGhWRwG LOlMw6ey5TyMuiLUvF/1m6QsujKt3UVpFFZWzl9EUhsJWYVr3aNbRceh/ACm/z2rjzNU PUCgX97GLCc7tI40Oh0gyC/yUnCvDaQ4jJWRY2ZrXjSFqA9E6j1QW3EEV2ShKLktvahp EVZE2PhZ61U4E0spqqIovt6a8Lsu/RBlDlBEVG4xeQLrVFsEnvR2l2oQJ2OhsP5t6yxn 06ukX0fITA0/MRjFlB83f1QhXR/pCirt4MNqkLqW2ihOJx8S1zbvGzw2bZqwJSqWSW29 gQ3A== 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=dPH0r0nflBFqv1m7r13i7TX4ChETPIDfhSZH2SS25Ow=; b=KVdfpOJEuV6nSZgqAG+Sz1Ot8p/Oh5n21iie3dLz+ZLuuIMuTE4lIEvm3oavTR/pyU /AHTwF5d3dq6Hpvify6CpdH8W2pBGZKXuLyxsKiGmeTzouPPY0YICjB88YhNeZy6m9IH lD0HV652nJV/c66vCMqeVqzS+/i2nrRl9FP1b9k4KE3AWwGf0fVEhhCxhRgFq1vlmD/Q 89dQQiiUcTUqLbDoEgs611deCJRU+2vxVjBvh6mHDBOUyegbSPMXAr7gM91zzukzgCt7 ed8kAtxjvcdKTUqRV9ZWeZiuK3jqpyAUP9Cu72/JZ9Kwwc2g1KKZzUXOjWtf3AinLrE5 G+6w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=OGJCdyhX; 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 g1si18783627ejz.557.2020.12.28.06.16.14; Mon, 28 Dec 2020 06:16:39 -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=OGJCdyhX; 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 S2440157AbgL1ONZ (ORCPT + 99 others); Mon, 28 Dec 2020 09:13:25 -0500 Received: from mail.kernel.org ([198.145.29.99]:47560 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2440158AbgL1ONX (ORCPT ); Mon, 28 Dec 2020 09:13:23 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id AAC35206D8; Mon, 28 Dec 2020 14:13:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1609164788; bh=viPBgMreGWdxLX96yFg9b+DQ1cPOL1SE5DYqkihxFt0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=OGJCdyhXuEL4T+nfl1qNMH3tPVPQTqw7sbQOZV0dajw5DFZsJmzPZv8aKJA/mtjxv faZfQelDNn51DOJizzOEErODr/i/6KWVi+t3/qzT5kkS4N/q9KSCSdk0EEJMH9iWmw lZDPYsEK5dhuc+EE4jmaDnPKdgozAxxLgkyZ+Vm4= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Hulk Robot , Zhang Changzhong , Heiko Stuebner , Sasha Levin Subject: [PATCH 5.10 298/717] soc: rockchip: io-domain: Fix error return code in rockchip_iodomain_probe() Date: Mon, 28 Dec 2020 13:44:56 +0100 Message-Id: <20201228125035.304415094@linuxfoundation.org> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20201228125020.963311703@linuxfoundation.org> References: <20201228125020.963311703@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: Zhang Changzhong [ Upstream commit c2867b2e710fc85bb39c6f6e5948450c48e8a33e ] Fix to return a negative error code from the error handling case instead of 0, as done elsewhere in this function. Fixes: e943c43b32ce ("PM: AVS: rockchip-io: Move the driver to the rockchip specific drivers") Reported-by: Hulk Robot Signed-off-by: Zhang Changzhong Link: https://lore.kernel.org/r/1607070805-33038-1-git-send-email-zhangchangzhong@huawei.com Signed-off-by: Heiko Stuebner Signed-off-by: Sasha Levin --- drivers/soc/rockchip/io-domain.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/soc/rockchip/io-domain.c b/drivers/soc/rockchip/io-domain.c index eece97f97ef8f..b29e829e815e5 100644 --- a/drivers/soc/rockchip/io-domain.c +++ b/drivers/soc/rockchip/io-domain.c @@ -547,6 +547,7 @@ static int rockchip_iodomain_probe(struct platform_device *pdev) if (uV < 0) { dev_err(iod->dev, "Can't determine voltage: %s\n", supply_name); + ret = uV; goto unreg_notify; } -- 2.27.0