Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3335354imu; Sun, 11 Nov 2018 12:38:06 -0800 (PST) X-Google-Smtp-Source: AJdET5dWgUs8BL4tcQSHwTjodCvGCNisZ9hNmTbFJOyFF6vn8txmIX/6pLAd7S1/iXq3OEvcPwPT X-Received: by 2002:a63:50b:: with SMTP id 11mr14744086pgf.411.1541968686396; Sun, 11 Nov 2018 12:38:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1541968686; cv=none; d=google.com; s=arc-20160816; b=UXV7O5B5c329h2jDp8R6Qkee3aosaTVByfNc2vcrSO8w1wQSSmnj2QZlJhIKWE/uUZ Q8q8488DruYdr4205Cl3LL81StBfMzPCO2tH+nQB7YkDaBNYAya8Nb6pkxKVBN4EKvvB zDo+9R+Wdg+yyWRYpd7NepI+k8PTrgfU0Tqgpl4dn7/dJcehFsqJT6Bmcd+/EO1b7GHj x3HkEi5fb/1bps7mG9KUJyzVJN6NfatRnnBve04ySAkHv5yaYvXqDjtcQ4qTVxA6HrSH K/fvfDXyZ7i/QfFcAmBQ7FNHbzlfmVI8N/Wh6NPDQcJ3R4XRgr5agcHJRb0YqHN7Eo13 JUGA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:subject:message-id:date:cc:to :from:mime-version:content-transfer-encoding:content-disposition; bh=BwOUfr0wNadm5YCq5Z2SZvRsWp07ANupTHNMWxV1pZ8=; b=hd//DGrx4nR9zz09Cx3xxxk1l4aADLhRSImv80BXzLVF5NEv5GQUDuzRL/GQD5jtXS eCT+jbS8unWX3m64hHrVLoc/0la7D+P0wE9dk1dUD2BiplZuF2YY5/CfXzehkb/jrlgK lALywH5AOZ812ZPLDcglzfHmZclKbYf0yQpUlaid+yDVFiYnZurVQdn5Itn2XM8Z2GzB tQ7UZegKsNy7JeHg0XNMIOink3GDA+Kp/lA5ZGtjABlArXGy+ZIecPF2CZuta5OlgRWo bukMTq8nb6ldLyzplx0NGSy0Eu1Qse/bANBzcks7pTtFfmDOhrDInsDuFmDg+hjdcJj+ cgbg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id o4-v6si13170082pgj.306.2018.11.11.12.37.51; Sun, 11 Nov 2018 12:38:06 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730217AbeKLG0y (ORCPT + 99 others); Mon, 12 Nov 2018 01:26:54 -0500 Received: from shadbolt.e.decadent.org.uk ([88.96.1.126]:49692 "EHLO shadbolt.e.decadent.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730071AbeKLFsK (ORCPT ); Mon, 12 Nov 2018 00:48:10 -0500 Received: from [192.168.4.242] (helo=deadeye) by shadbolt.decadent.org.uk with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1gLvsW-0000oN-BF; Sun, 11 Nov 2018 19:58:40 +0000 Received: from ben by deadeye with local (Exim 4.91) (envelope-from ) id 1gLvsT-0001aj-0v; Sun, 11 Nov 2018 19:58:37 +0000 Content-Type: text/plain; charset="UTF-8" Content-Disposition: inline Content-Transfer-Encoding: 8bit MIME-Version: 1.0 From: Ben Hutchings To: linux-kernel@vger.kernel.org, stable@vger.kernel.org CC: akpm@linux-foundation.org, "David Vrabel" , "David S. Miller" Date: Sun, 11 Nov 2018 19:49:05 +0000 Message-ID: X-Mailer: LinuxStableQueue (scripts by bwh) Subject: [PATCH 3.16 163/366] xen-netfront: fix locking in connect error path In-Reply-To: X-SA-Exim-Connect-IP: 192.168.4.242 X-SA-Exim-Mail-From: ben@decadent.org.uk X-SA-Exim-Scanned: No (on shadbolt.decadent.org.uk); SAEximRunCond expanded to false Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 3.16.61-rc1 review patch. If anyone has any objections, please let me know. ------------------ From: David Vrabel 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 Signed-off-by: David S. Miller Signed-off-by: Ben Hutchings --- 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; }