summaryrefslogtreecommitdiffstats
path: root/drivers/net/xen-netfront.c
diff options
context:
space:
mode:
authorDavid Vrabel <david.vrabel@citrix.com>2014-07-31 18:38:22 +0200
committerDavid S. Miller <davem@davemloft.net>2014-08-01 07:23:52 +0200
commitdb8c8ab61a28d7e3eb86d247b342a853263262c3 (patch)
tree8977b64b3e31e9d8026519809d5f8678764fff4d /drivers/net/xen-netfront.c
parentmacvlan: Initialize vlan_features to turn on offload support. (diff)
downloadlinux-db8c8ab61a28d7e3eb86d247b342a853263262c3.tar.xz
linux-db8c8ab61a28d7e3eb86d247b342a853263262c3.zip
xen-netfront: fix locking in connect error path
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>
Diffstat (limited to 'drivers/net/xen-netfront.c')
-rw-r--r--drivers/net/xen-netfront.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/xen-netfront.c b/drivers/net/xen-netfront.c
index 055222bae6e4..1cc46d00d20a 100644
--- a/drivers/net/xen-netfront.c
+++ b/drivers/net/xen-netfront.c
@@ -2001,7 +2001,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;
}