blob: 4606eca0ce1384a81a8be8ca7daf8a2d31991f67 [file] [log] [blame]
From: David Vrabel <david.vrabel@citrix.com>
Date: Thu, 31 Jul 2014 17:38:22 +0100
Subject: xen-netfront: fix locking in connect error path
commit db8c8ab61a28d7e3eb86d247b342a853263262c3 upstream.
If no queues could be created when connecting to the backend, one of the
error paths would deadlock.
Signed-off-by: David Vrabel <david.vrabel@citrix.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
---
drivers/net/xen-netfront.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
--- a/drivers/net/xen-netfront.c
+++ b/drivers/net/xen-netfront.c
@@ -2000,7 +2000,7 @@ abort_transaction_no_dev_fatal:
info->queues = NULL;
rtnl_lock();
netif_set_real_num_tx_queues(info->netdev, 0);
- rtnl_lock();
+ rtnl_unlock();
out:
return err;
}