public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] net: chelsio: cxgb4: add an error code check in t4_load_phy_fw
@ 2023-10-20  9:27 Su Hui
  2023-10-22 10:40 ` patchwork-bot+netdevbpf
  0 siblings, 1 reply; 2+ messages in thread
From: Su Hui @ 2023-10-20  9:27 UTC (permalink / raw)
  To: rajur, davem, edumazet, kuba, pabeni
  Cc: Su Hui, netdev, linux-kernel, kernel-janitors

t4_set_params_timeout() can return -EINVAL if failed, add check
for this.

Signed-off-by: Su Hui <suhui@nfschina.com>
---
 drivers/net/ethernet/chelsio/cxgb4/t4_hw.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/drivers/net/ethernet/chelsio/cxgb4/t4_hw.c b/drivers/net/ethernet/chelsio/cxgb4/t4_hw.c
index 8d719f82854a..76de55306c4d 100644
--- a/drivers/net/ethernet/chelsio/cxgb4/t4_hw.c
+++ b/drivers/net/ethernet/chelsio/cxgb4/t4_hw.c
@@ -3816,6 +3816,8 @@ int t4_load_phy_fw(struct adapter *adap, int win,
 		 FW_PARAMS_PARAM_Z_V(FW_PARAMS_PARAM_DEV_PHYFW_DOWNLOAD));
 	ret = t4_set_params_timeout(adap, adap->mbox, adap->pf, 0, 1,
 				    &param, &val, 30000);
+	if (ret)
+		return ret;
 
 	/* If we have version number support, then check to see that the new
 	 * firmware got loaded properly.
-- 
2.30.2


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] net: chelsio: cxgb4: add an error code check in t4_load_phy_fw
  2023-10-20  9:27 [PATCH] net: chelsio: cxgb4: add an error code check in t4_load_phy_fw Su Hui
@ 2023-10-22 10:40 ` patchwork-bot+netdevbpf
  0 siblings, 0 replies; 2+ messages in thread
From: patchwork-bot+netdevbpf @ 2023-10-22 10:40 UTC (permalink / raw)
  To: Su Hui
  Cc: rajur, davem, edumazet, kuba, pabeni, netdev, linux-kernel,
	kernel-janitors

Hello:

This patch was applied to netdev/net.git (main)
by David S. Miller <davem@davemloft.net>:

On Fri, 20 Oct 2023 17:27:59 +0800 you wrote:
> t4_set_params_timeout() can return -EINVAL if failed, add check
> for this.
> 
> Signed-off-by: Su Hui <suhui@nfschina.com>
> ---
>  drivers/net/ethernet/chelsio/cxgb4/t4_hw.c | 2 ++
>  1 file changed, 2 insertions(+)

Here is the summary with links:
  - net: chelsio: cxgb4: add an error code check in t4_load_phy_fw
    https://git.kernel.org/netdev/net/c/9f771493da93

You are awesome, thank you!
-- 
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2023-10-22 10:40 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-10-20  9:27 [PATCH] net: chelsio: cxgb4: add an error code check in t4_load_phy_fw Su Hui
2023-10-22 10:40 ` patchwork-bot+netdevbpf

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox