[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20130708072257.20564.36904.stgit@zurg>
Date: Mon, 08 Jul 2013 11:22:57 +0400
From: Konstantin Khlebnikov <khlebnikov@...nvz.org>
To: netdev@...r.kernel.org, linux-kernel@...r.kernel.org
Cc: e1000-devel@...ts.sourceforge.net,
Jeff Kirsher <jeffrey.t.kirsher@...el.com>
Subject: [PATCH] drivers/net: igb: release rtnl_lock on error path
This adds missing rtnl_unlock()
Signed-off-by: Konstantin Khlebnikov <khlebnikov@...nvz.org>
Cc: Jeff Kirsher <jeffrey.t.kirsher@...el.com>
Cc: e1000-devel@...ts.sourceforge.net
---
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 64cbe0d..86ac29d 100644
--- a/drivers/net/ethernet/intel/igb/igb_main.c
+++ b/drivers/net/ethernet/intel/igb/igb_main.c
@@ -7235,6 +7235,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;
}
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists