Skip to content

Commit

Permalink
xen-netfront: fix locking in connect error path
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
David Vrabel authored and David S. Miller committed Aug 1, 2014
1 parent 081e83a commit db8c8ab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/net/xen-netfront.c
Original file line number Diff line number Diff line change
Expand Up @@ -2001,7 +2001,7 @@ static int talk_to_netback(struct xenbus_device *dev,
info->queues = NULL;
rtnl_lock();
netif_set_real_num_tx_queues(info->netdev, 0);
rtnl_lock();
rtnl_unlock();
out:
return err;
}
Expand Down

0 comments on commit db8c8ab

Please sign in to comment.