[Devel] [PATCH RHEL7 COMMIT] ms/net/drivers: rtnl_lock is called twice in i40e_pci_error_resume()

Konstantin Khorenko khorenko at virtuozzo.com
Fri Jul 17 13:19:49 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 76ccc7ef9b6f44fc7db642ceddcda3e70a7e1cf1
Author: Vasily Averin <vvs at virtuozzo.com>
Date:   Sat Jul 18 00:19:49 2015 +0400

    ms/net/drivers: rtnl_lock is called twice in i40e_pci_error_resume()
    
    one more rtnl_lock-related bug in mainline
    http://patchwork.ozlabs.org/patch/492877/
    https://bugzilla.redhat.com/show_bug.cgi?id=1241027
    
    Signed-off-by: Vasily Averin <vvs at virtuozzo.com>
---
 drivers/net/ethernet/intel/i40e/i40e_main.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/net/ethernet/intel/i40e/i40e_main.c b/drivers/net/ethernet/intel/i40e/i40e_main.c
index a4b9408..aea8708 100644
--- a/drivers/net/ethernet/intel/i40e/i40e_main.c
+++ b/drivers/net/ethernet/intel/i40e/i40e_main.c
@@ -8335,7 +8335,7 @@ static void i40e_pci_error_resume(struct pci_dev *pdev)
 
 	rtnl_lock();
 	i40e_handle_reset_warning(pf);
-	rtnl_lock();
+	rtnl_unlock();
 }
 
 /**



More information about the Devel mailing list