[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20220917001027.3799634-1-floridsleeves@gmail.com>
Date: Fri, 16 Sep 2022 17:10:27 -0700
From: Li Zhong <floridsleeves@...il.com>
To: linux-kernel@...r.kernel.org, netdev@...r.kernel.org,
intel-wired-lan@...ts.osuosl.org
Cc: pabeni@...hat.com, kuba@...nel.org, edumazet@...gle.com,
davem@...emloft.net, anthony.l.nguyen@...el.com,
jesse.brandeburg@...el.com, Li Zhong <floridsleeves@...il.com>
Subject: [PATCH v2] drivers/net/ethernet/intel/e100: check the return value of e100_exec_cmd()
Check the return value of e100_exec_cmd() which could return error code
when execution fails.
Signed-off-by: Li Zhong <floridsleeves@...il.com>
---
drivers/net/ethernet/intel/e100.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/drivers/net/ethernet/intel/e100.c b/drivers/net/ethernet/intel/e100.c
index 11a884aa5082..0d133cd4d01b 100644
--- a/drivers/net/ethernet/intel/e100.c
+++ b/drivers/net/ethernet/intel/e100.c
@@ -1911,7 +1911,9 @@ static inline void e100_start_receiver(struct nic *nic, struct rx *rx)
/* (Re)start RU if suspended or idle and RFA is non-NULL */
if (rx->skb) {
- e100_exec_cmd(nic, ruc_start, rx->dma_addr);
+ if (e100_exec_cmd(nic, ruc_start, rx->dma_addr))
+ netif_printk(nic, tx_err, KERN_DEBUG, nic->netdev,
+ "exec ruc_start failed\n");
nic->ru_running = RU_RUNNING;
}
}
--
2.25.1
Powered by blists - more mailing lists