[Devel] [PATCH RHEL7 COMMIT] ms/net/drivers: missing rtnl_unlock in igb_sriov_reinit()

Konstantin Khorenko khorenko at virtuozzo.com
Fri Jul 17 13:19:34 PDT 2015


The commit is pushed to "branch-rh7-3.10.0-123.1.2-ovz" and will appear at https://src.openvz.org/scm/ovz/vzkernel.git
after rh7-3.10.0-123.1.2.vz7.5.25
------>
commit e2e649a7857a8fe3160fb53871a634591267ee59
Author: Vasily Averin <vvs at virtuozzo.com>
Date:   Sat Jul 18 00:19:34 2015 +0400

    ms/net/drivers: missing rtnl_unlock in igb_sriov_reinit()
    
    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;
 	}



More information about the Devel mailing list