xen-netfront: fix locking in connect error path
authorDavid Vrabel <david.vrabel@citrix.com>
Thu, 31 Jul 2014 16:38:22 +0000 (17:38 +0100)
committerDavid S. Miller <davem@davemloft.net>
Fri, 1 Aug 2014 05:23:52 +0000 (22:23 -0700)
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>
drivers/net/xen-netfront.c

index 055222b..1cc46d0 100644 (file)
@@ -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;
 }