[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20250408101640.GV395307@horms.kernel.org>
Date: Tue, 8 Apr 2025 11:16:40 +0100
From: Simon Horman <horms@...nel.org>
To: Wentao Liang <vulab@...as.ac.cn>
Cc: ecree.xilinx@...il.com, habetsm.xilinx@...il.com, andrew+netdev@...n.ch,
davem@...emloft.net, edumazet@...gle.com, kuba@...nel.org,
pabeni@...hat.com, netdev@...r.kernel.org,
linux-staging@...ts.linux.dev, linux-net-drivers@....com,
linux-kernel@...r.kernel.org, stable@...r.kernel.org,
"Lucero Palau, Alejandro" <alejandro.lucero-palau@....com>
Subject: Re: [PATCH v2] sfc: Propagate the return value of
devlink_info_serial_number_put()
+ Alejandro
On Mon, Apr 07, 2025 at 09:11:10PM +0800, Wentao Liang wrote:
> The function efx_devlink_info_board_cfg() calls the function
> devlink_info_serial_number_put(), but does not check its return
> value.
>
> Return the error code if either the devlink_info_serial_number_put()
> or the efx_mcdi_get_board_cfg() fails.The control flow of the code is
> changed a little bit to simplify the code. The functionality of the
> code remain the same.
>
> Fixes: 14743ddd2495 ("sfc: add devlink info support for ef100")
> Cc: stable@...r.kernel.org # v6.3+
> Signed-off-by: Wentao Liang <vulab@...as.ac.cn>
Hi Wentao,
In his review of v1 Edward Cree said:
"Looking at the rest of the file, all the calls to
devlink_info_*_put() in this driver ignore the return value, not
just this one. I think this may have been an intentional decision
to only report errors in getting the info from FW, which seems
reasonable to me.
"If not, then all the calls need fixing, not just this one.
CCing Alejandro, original author of this code, for his opinion.
I have CCed Aljandro on this email to see if he can help.
And in any case, I think we need to come to a consensus on
Ed's point before moving forwards with this patch.
--
pw-bot: changes-requested
Powered by blists - more mailing lists