projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ca082f0
)
net: chelsio: cxgb4: add an error code check in t4_load_phy_fw
author
Su Hui
<suhui@nfschina.com>
Fri, 20 Oct 2023 09:27:59 +0000
(17:27 +0800)
committer
David S. Miller
<davem@davemloft.net>
Sun, 22 Oct 2023 10:36:30 +0000
(11:36 +0100)
t4_set_params_timeout() can return -EINVAL if failed, add check
for this.
Signed-off-by: Su Hui <suhui@nfschina.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/chelsio/cxgb4/t4_hw.c
patch
|
blob
|
history
diff --git
a/drivers/net/ethernet/chelsio/cxgb4/t4_hw.c
b/drivers/net/ethernet/chelsio/cxgb4/t4_hw.c
index 8d719f82854a9d3acb582ba3b8af13479d29771d..76de55306c4d0182ce0e5b8d3c4f49420520242a 100644
(file)
--- 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,
¶m, &val, 30000);
+ if (ret)
+ return ret;
/* If we have version number support, then check to see that the new
* firmware got loaded properly.