From: David Vrabel Date: Thu, 31 Jul 2014 16:38:22 +0000 (+0100) Subject: xen-netfront: fix locking in connect error path X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=db8c8ab61a28d7e3eb86d247b342a853263262c3;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git 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 Signed-off-by: David S. Miller --- 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; }