ACK: [SRU][J:linux-bluefield][PATCH v1 0/1] net/mlxbf_gige: Fix an IS_ERR() vs NULL bug in mlxbf_gige_mdio_probe

Tim Gardner tim.gardner at canonical.com
Fri Sep 30 16:41:38 UTC 2022


On 9/30/22 09:24, David Thompson wrote:
> BugLink: https://bugs.launchpad.net/bugs/1991403
> 
> SRU Justification:
> 
> [Impact]
> 
> The following upstream commit was recently added to Jammy:
>    3a1a274e933f mlxbf_gige: compute MDIO period based on i1clk
> 
> This patch added driver logic that includes a "devm_ioremap"
> call, but the error handling logic pertaining to this call
> is incorrect.
> 
> [Fix]
> 
> The "devm_ioremap" function returns NULL on error, it doesn't
> return error pointers. The error handling logic has been
> fixed accordingly.
> 
> [Test Case]
> 
> Boot platform and bring up "oob_net0" interface properly
> Test that network traffic works properly
> 
> [Regression Potential]
> 
> Low, as the patch was reviewed upstream
> 
> [Other]
> 
> None
> 
> Peng Wu (1):
>    net/mlxbf_gige: Fix an IS_ERR() vs NULL bug in mlxbf_gige_mdio_probe
> 
>   drivers/net/ethernet/mellanox/mlxbf_gige/mlxbf_gige_mdio.c | 4 ++--
>   1 file changed, 2 insertions(+), 2 deletions(-)
> 
Acked-by: Tim Gardner <tim.gardner at canonical.com>

-- 
-----------
Tim Gardner
Canonical, Inc



More information about the kernel-team mailing list