Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp1835667pxu; Fri, 27 Nov 2020 17:06:45 -0800 (PST) X-Google-Smtp-Source: ABdhPJxYATLDMB7Q8ApvFFrOLjc/1hZSiRDedzOj8x6sLlaSarXeJ0MsmkIh0Y4BYzyS+PVoOoR6 X-Received: by 2002:a17:906:4c82:: with SMTP id q2mr10265647eju.285.1606525605617; Fri, 27 Nov 2020 17:06:45 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606525605; cv=none; d=google.com; s=arc-20160816; b=R433V/YQ5HMkC22HqIv+XhkTeHHMDrowMKXrhWhL/m2XbsXKWCWZrhdKCtveC+DBTE DGvJLt/RT13IexSFnGaxoae6tibyg2SKRwLhVroaQ2K9e1fwwDpgHYZkWDYQLj/eh4dV 0+dK3wgkQjW8ekOyATQgm/XhZkp+bm2n33oSFBKVFe9OY3e+OdXR4eFRHUYsdo6ZLH0y HnmxLjlZeQbZoQ2X2nI9//PJheYr7uMe23rXRY08xFUN6SO0gCl9iuJK/JWPBcqbsVDZ WGyS4896k/c+MsvkdO7HfbJ3TW57h/QK4sLmKduQBlu5CuII2MGCC4rZMcmZBYgU+Kf7 x9Zg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=toV/moYPH4hwWCFbVOjASwBOui65EQLG7lyW7wQMLSE=; b=XXnuCDl1bZGxLffo8QTrlRfDngD9WvxIjaHorXbjVVWPYWRxik1HNFW160Z+ac93mr GwulP0+e9DAgkbgUHSfCpa7XtMjtPxdOa6eEbT8RYxeVsIFo9fvy/vE1u3XHMEOQ3fSK 7YsQeeli/4SFJOxB5lbGVELatbhSn/I5y4CKa7tSuEOKbE0wRb43XjUrL8ZjNUTJJZul GHfjNG8lVdwaXCue8AgPuiV6TeQUD01bPrFia4Tl/URokog+LpP/uWi3n0+RVS36T266 hfBxyaER3LT966VJQ2yDgcWQ9dj+1yifZ3uhjH5yI1Qi5+pt+hx59qUIw7ZAoFwwuUGX Vtwg== 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 v5si6284551eda.107.2020.11.27.17.06.22; Fri, 27 Nov 2020 17:06:45 -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 S1732114AbgK0WlO (ORCPT + 99 others); Fri, 27 Nov 2020 17:41:14 -0500 Received: from jabberwock.ucw.cz ([46.255.230.98]:58310 "EHLO jabberwock.ucw.cz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732251AbgK0WiW (ORCPT ); Fri, 27 Nov 2020 17:38:22 -0500 Received: by jabberwock.ucw.cz (Postfix, from userid 1017) id D8DF71C0B7C; Fri, 27 Nov 2020 23:38:03 +0100 (CET) Date: Fri, 27 Nov 2020 23:38:03 +0100 From: Pavel Machek To: Lad Prabhakar Cc: Sergei Shtylyov , Krzysztof Kozlowski , Philipp Zabel , Jiri Kosina , Mark Brown , linux-renesas-soc@vger.kernel.org, Pavel Machek , Geert Uytterhoeven , linux-kernel@vger.kernel.org, Prabhakar , stable@vger.kernel.org Subject: Re: [PATCH v2 1/5] memory: renesas-rpc-if: Return correct value to the caller of rpcif_manual_xfer() Message-ID: <20201127223803.GA19743@duo.ucw.cz> References: <20201126191146.8753-1-prabhakar.mahadev-lad.rj@bp.renesas.com> <20201126191146.8753-2-prabhakar.mahadev-lad.rj@bp.renesas.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="9jxsPFA5p3P2qPhR" Content-Disposition: inline In-Reply-To: <20201126191146.8753-2-prabhakar.mahadev-lad.rj@bp.renesas.com> User-Agent: Mutt/1.10.1 (2018-07-13) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --9jxsPFA5p3P2qPhR Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu 2020-11-26 19:11:42, Lad Prabhakar wrote: > In the error path of rpcif_manual_xfer() the value of ret is overwritten > by value returned by reset_control_reset() function and thus returning > incorrect value to the caller. >=20 > This patch makes sure the correct value is returned to the caller of > rpcif_manual_xfer() by dropping the overwrite of ret in error path. > Also now we ignore the value returned by reset_control_reset() in the > error path and instead print a error message when it fails. >=20 > Fixes: ca7d8b980b67f ("memory: add Renesas RPC-IF driver") > Reported-by: Pavel Machek > Signed-off-by: Lad Prabhakar > Cc: stable@vger.kernel.org > Reviewed-by: Sergei Shtylyov Reviewed-by: Pavel Machek (CIP) --=20 DENX Software Engineering GmbH, Managing Director: Wolfgang Denk HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany --9jxsPFA5p3P2qPhR Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iF0EABECAB0WIQRPfPO7r0eAhk010v0w5/Bqldv68gUCX8F/ywAKCRAw5/Bqldv6 8sJlAJ9fTid4o1km6GdynHQGgwdTjZ+VGgCgl/kASNL5bG8vz5uJ1VZMGINCKxo= =vOP0 -----END PGP SIGNATURE----- --9jxsPFA5p3P2qPhR--