Skip to contentSkip to conversation

fm10k:Fix error handling in the function fm10k_resume

PATCH In review Nicholas Krause 2 participants 2 messages Oct 17, 2015 – Oct 28, 2015

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

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
index ce53ff2..cb3bfc8 100644
@@ -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
Tested-by on v1 1/1
#1 lore raw

-----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

---