[Devel] [PATCH rh7 2/3] missing rtnl_unlock in igb_sriov_reinit()

Vasily Averin vvs at virtuozzo.com
Tue Jul 7 10:10:31 PDT 2015


Signed-off-by: Vasily Averin <vvs at virtuozzo.com>
---
 drivers/net/ethernet/intel/igb/igb_main.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/net/ethernet/intel/igb/igb_main.c b/drivers/net/ethernet/intel/igb/igb_main.c
index 421f3f1..38d56c4 100644
--- a/drivers/net/ethernet/intel/igb/igb_main.c
+++ b/drivers/net/ethernet/intel/igb/igb_main.c
@@ -7282,6 +7282,7 @@ static int igb_sriov_reinit(struct pci_dev *dev)
 	igb_init_queue_configuration(adapter);
 
 	if (igb_init_interrupt_scheme(adapter, true)) {
+		rtnl_unlock();
 		dev_err(&pdev->dev, "Unable to allocate memory for queues\n");
 		return -ENOMEM;
 	}
-- 
1.9.1




More information about the Devel mailing list