Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp3725360pxb; Mon, 27 Sep 2021 00:48:24 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxmY3YHwMSXpw7Nh/SPplzMKEKCE9fTFaO2BqXQ5GilvzpAki65qulO+Kni7KMsHd4m4CNz X-Received: by 2002:a17:906:4f96:: with SMTP id o22mr25129138eju.169.1632728904639; Mon, 27 Sep 2021 00:48:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1632728904; cv=none; d=google.com; s=arc-20160816; b=fRR8X9CR4l2kulYWJr5Fue/nggsg/+bpXyAgCipXyQMqovOuPTR0LyiC9mYZYmA1KG 1xDPNNZmAy/Q5n3BlcnGkglpWi1K7wrJyt4A/Bqeksn3qI0u7i8pmZ6V08Sq2sH34ACV r8WGwx648Y/RRsokwwL02VdF1d9gGbUdoDcR5VdQgQtj96UFyAdpxZZMILwRDz93xfuo SvMf+R0rpCMzBqrG9Ixz8mBOef8Hf00vAmZyJods0yIpDa5YyamWl0L8GC4SFGGLZ25e VhKS1ZjQ1dwqbVd18x0cu9Nb+mqZmtZc0USuwiyMpfArLuTgiJkTYUfkpP/CzI4gYLCG ug2w== 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 :message-id:date:subject:cc:to:from; bh=nm9Bc+gxjgIz27PUhuhg4TICejWR2lm+xeft/evMlmI=; b=qw93pS5gnGAW2pbqmZoFAWMizw5YPYhSWP2Q+OaSm1ht79pK91GYgBsX9PqLaa3yYI qLpUNRtv8OZA6xOFjawDj+eQG9PIVWCZY1V6MqxUnWQixYATCjhswQnLhfwQhEY5zg4i NZcs+2DqdxV2AEsakLkzbp81R6ZoSTKZv8wBVUfbSW7YKluauNpyaIgjmqHUKysU0rmK twe0KbhdPXhednRRk95iDgVpkESgu9EqZF7N4wCMDUphkcsQtw1yIn98ASIVQb8Kgare cM3qIG2+9HFyyBjo/hecM86wSxmCnczJrV67HJQKb1q8wLu5wkrurOIZh8ppBa+0htak Ljxg== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=huawei.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id f24si8410434edv.585.2021.09.27.00.48.01; Mon, 27 Sep 2021 00:48:24 -0700 (PDT) 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233322AbhI0Hru (ORCPT + 99 others); Mon, 27 Sep 2021 03:47:50 -0400 Received: from szxga02-in.huawei.com ([45.249.212.188]:21354 "EHLO szxga02-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233223AbhI0Hrt (ORCPT ); Mon, 27 Sep 2021 03:47:49 -0400 Received: from dggemv711-chm.china.huawei.com (unknown [172.30.72.56]) by szxga02-in.huawei.com (SkyGuard) with ESMTP id 4HHvjG6grSzRXBm; Mon, 27 Sep 2021 15:41:54 +0800 (CST) Received: from dggpeml500017.china.huawei.com (7.185.36.243) by dggemv711-chm.china.huawei.com (10.1.198.66) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2308.8; Mon, 27 Sep 2021 15:46:10 +0800 Received: from huawei.com (10.175.103.91) by dggpeml500017.china.huawei.com (7.185.36.243) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2308.8; Mon, 27 Sep 2021 15:46:10 +0800 From: Yang Yingliang To: , CC: , Subject: [PATCH -next] memory: tegra186-emc: Fix error return code in tegra186_emc_probe() Date: Mon, 27 Sep 2021 15:51:07 +0800 Message-ID: <20210927075107.2882569-1-yangyingliang@huawei.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-Originating-IP: [10.175.103.91] X-ClientProxiedBy: dggems705-chm.china.huawei.com (10.3.19.182) To dggpeml500017.china.huawei.com (7.185.36.243) X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Return the error code when command fails. Fixes: 13324edbe926 ("memory: tegra186-emc: Handle errors in BPMP response") Reported-by: Hulk Robot Signed-off-by: Yang Yingliang --- drivers/memory/tegra/tegra186-emc.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/memory/tegra/tegra186-emc.c b/drivers/memory/tegra/tegra186-emc.c index abc0c2eeaab7..16351840b187 100644 --- a/drivers/memory/tegra/tegra186-emc.c +++ b/drivers/memory/tegra/tegra186-emc.c @@ -198,6 +198,7 @@ static int tegra186_emc_probe(struct platform_device *pdev) goto put_bpmp; } if (msg.rx.ret < 0) { + err = msg.rx.ret; dev_err(&pdev->dev, "EMC DVFS MRQ failed: %d (BPMP error code)\n", msg.rx.ret); goto put_bpmp; } -- 2.25.1