fm10k:Fix error handling in the function fm10k_resume
Subsystems (3)
PATCH 1/1 fm10k:Fix error handling in the function fm10k_resume
This fixes error handling to proper check if the call to the function fm10k_mbx_request_irq has failed by returning a error code and if so return immediately to the caller of fm10k_resume to properly signal a failure has occurred when accepting to resume this network
--- drivers/net/ethernet/intel/fm10k/fm10k_pci.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)
drivers/net/ethernet/intel/fm10k/fm10k_pci.c +3 -1
@@ -1973,7 +1973,9 @@ static int fm10k_resume(struct pci_dev *pdev) err =fm10k_init_queueing_scheme (interface);if (!err) { -fm10k_mbx_request_irq (interface); + err =fm10k_mbx_request_irq (interface); +if (err) +return err;if (netif_running (netdev)) err =fm10k_open (netdev); }
Signature · 1 line
2.1.4
-----Original Message-----
From: Intel-wired-lan [mailto:intel-wired-lan-bounces at lists.osuosl.org] On Behalf Of Nicholas Krause
Sent: Saturday, October 17, 2015 9:21 AM
To: Kirsher, Jeffrey T <[email protected]>
Cc: linux-kernel at vger.kernel.org; intel-wired-lan at lists.osuosl.org; netdev at vger.kernel.org
Subject: [Intel-wired-lan] [PATCH] fm10k:Fix error handling in the function fm10k_resume
This fixes error handling to proper check if the call to the function fm10k_mbx_request_irq has failed by returning a error code and if so return immediately to the caller of fm10k_resume to properly signal a failure has occurred when accepting to resume this network
---