[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <Y4XJK1wvpxrIeUS2@unreal>
Date: Tue, 29 Nov 2022 10:56:11 +0200
From: Leon Romanovsky <leon@...nel.org>
To: Wang Yufen <wangyufen@...wei.com>,
dennis.dalessandro@...nelisnetworks.com
Cc: bvanassche@....org, jgg@...pe.ca, linux-rdma@...r.kernel.org,
linux-kernel@...r.kernel.org, andriy.shevchenko@...ux.intel.com,
easwar.hariharan@...el.com
Subject: Re: [PATCH v4 1/2] RDMA/hfi1: Fix error return code in
parse_platform_config()
On Tue, Nov 29, 2022 at 10:04:18AM +0800, Wang Yufen wrote:
> In the previous while loop, "ret" may be assigned zero, so the error
> return code may be incorrectly set to 0 instead of -EINVAL.
>
> Fixes: 97167e813415 ("staging/rdma/hfi1: Tune for unknown channel if configuration file is absent")
> Signed-off-by: Wang Yufen <wangyufen@...wei.com>
> ---
> drivers/infiniband/hw/hfi1/firmware.c | 8 +++++++-
> 1 file changed, 7 insertions(+), 1 deletion(-)
>
Thanks, LGTM.
@Dennis?
Powered by blists - more mailing lists