Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp1186869pxu; Fri, 27 Nov 2020 01:37:12 -0800 (PST) X-Google-Smtp-Source: ABdhPJz1fJ810RGkto6RykaXyT8ubP0fXyBLTEhGEnAY+VMGy+rj4Mx0OO4eLUjYoNQznKsbr5N6 X-Received: by 2002:a50:fe18:: with SMTP id f24mr6850590edt.162.1606469832241; Fri, 27 Nov 2020 01:37:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606469832; cv=none; d=google.com; s=arc-20160816; b=Jryu8Ied+gf84kQN+LbBRAAD+63mfoVtT1lEySI2QMZ1J07PiMLCdKvEEV1w+Q4wK+ gVs6S8eAp5ESXd1E24BExuNyxumKg8nQF7cug4kNMOeXu/Pwcauux4q+XLFF03i5D7Kn UcI4MHvi8DAleEZC+qU2pLUJUnqG5xS4KfHxnJu79etbuE3NyX1PMkbpgDWaW+Aty2/z 2A1/VUbRmCt1h8BHAYkhyQmwTrxQBkViYTCC3MkAj3ltVq5EjQLe07L2T8ItIGM0qqQq 89kdLJcfVkk1JtRTsYrNK/Rg9XASaEXK1iMo+VqMpJJR1jAT0pZZWt5oWKsuVR0xkMoF KPhA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version; bh=+o1zY6oeZsDsItG8Zlzn8+hdL/E+Dvm6aLi6UCmULNY=; b=DeB5ExTXo5P6JCKsU1U8aABsqt9Wp511O9ofIebAs4PxZj+H7ZEBtcLcKSyvcWMkFT JiSaixF4c0JP7IrgZRxWdEyGuN34tth/Cd8Tf+4DBA+35ZwjZtrCmNswOhZsgvQFq9DK jwFgtZc7gMrV3/XbvbXQ8fB4NdOxRyBemapmBO71L0oAO//3tV3mx2A7ynU2Wy2qrEpC UKD1JONJ6Jffbm+eG/8rir3V/bqb8eBrLn7PLKvRFGqvsgmgo2NkWrOCx/CBTb2hf8ow Rk+NUU4F1/4VrKM4q3e7iqYxPUh98H2XHF0FSJkizvxSwdjz6BfAEEqd6igFlh8rB5DT B/LA== 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 v3si2289522ejx.433.2020.11.27.01.36.49; Fri, 27 Nov 2020 01:37: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; 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 S1726736AbgK0JeU (ORCPT + 99 others); Fri, 27 Nov 2020 04:34:20 -0500 Received: from mail-oi1-f194.google.com ([209.85.167.194]:40435 "EHLO mail-oi1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725989AbgK0JeT (ORCPT ); Fri, 27 Nov 2020 04:34:19 -0500 Received: by mail-oi1-f194.google.com with SMTP id a130so5201867oif.7; Fri, 27 Nov 2020 01:34:18 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=+o1zY6oeZsDsItG8Zlzn8+hdL/E+Dvm6aLi6UCmULNY=; b=iuxQtW3e9JZz/l0oiSiwFWm/H2uysEK/rorJ+p7ck0M1uyyBBv8oCETVLXcHliLgK6 OnMJLnT5u9SZsqnI1Ay9PAYH+hsKfZVirdXQAqXYupkBqCbqzQXCWKYPcewc8NYDHIlm Odg+tDPfbHGblHWDeVkduw2vwkSB13PYS8y98tebZ2ZcowUlCWOm8KH4UG7KeYwL1Mnl OZ11FC7Vjj8uUpKlq6LMRfIT4Tk8+cbMtgUGIMAzBrhADRQcrPPpVEzBA/sLYVOkx38s tF3hWmDdLscpAORENx7y5Jar1bpOT25t+Y9KEAZBNGMTGnQVHxx+C8qcEn4Y1gKiPxxZ bs7w== X-Gm-Message-State: AOAM5313zndwpO8VzQyQMgYBui+OWO/pfzOzpvZ7lFbHWQBb/1bvEkvg +/dXUB0R6dS4z2R2kyldRzWYofLEORTLhV+IbvA= X-Received: by 2002:aca:c3c4:: with SMTP id t187mr4569554oif.148.1606469658632; Fri, 27 Nov 2020 01:34:18 -0800 (PST) MIME-Version: 1.0 References: <20201126191146.8753-1-prabhakar.mahadev-lad.rj@bp.renesas.com> <20201126191146.8753-2-prabhakar.mahadev-lad.rj@bp.renesas.com> In-Reply-To: <20201126191146.8753-2-prabhakar.mahadev-lad.rj@bp.renesas.com> From: Geert Uytterhoeven Date: Fri, 27 Nov 2020 10:34:07 +0100 Message-ID: Subject: Re: [PATCH v2 1/5] memory: renesas-rpc-if: Return correct value to the caller of rpcif_manual_xfer() To: Lad Prabhakar Cc: Sergei Shtylyov , Krzysztof Kozlowski , Philipp Zabel , Jiri Kosina , Mark Brown , Linux-Renesas , Pavel Machek , Geert Uytterhoeven , Linux Kernel Mailing List , Prabhakar , stable Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Nov 26, 2020 at 8:12 PM 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. > > 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. > > 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: Geert Uytterhoeven Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds