Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3334928imu; Sun, 11 Nov 2018 12:37:27 -0800 (PST) X-Google-Smtp-Source: AJdET5fAqcU/JDcRcRmd+JgW8RqhOP9HT7ky243r158TMvZ0jKT1ekt/XgX7lfH06plAaXDBpu+Z X-Received: by 2002:a17:902:be0e:: with SMTP id r14-v6mr8826996pls.23.1541968647021; Sun, 11 Nov 2018 12:37:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1541968646; cv=none; d=google.com; s=arc-20160816; b=z+ndHkqYJKGez4sEcXMP07Ncq14iqPoJuKAGG/J6JRkc+raNwGHsyR0AsvAVsSI35+ SW6tSVj6fi/pOz7bksuMhXbsSQcznKtHyoWc0Q7rutAPOtS6j7Go8feAlqfjyD1uwPl/ 3QFlGHrwQ35os6ftvIQeOrBj2nOO8W5qb0x5uIQbRjVR/KvyHKvM/MrOutoLuG13RKI9 yTCQ1svApX/oz3jzQFQpcju7yWiAHrfBFOakRsuEly+8MGuQlZKexwqUKr6lR4pXg2Ok pSJXXVsTMzKVT6o98pXj969e/4JbovzZ52gC/0eUECUF+jU2RLSCaANb4hV1UJewiOFZ HK2Q== 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=YkbZrJv4maGTgt/YEieqh1RczxCvxfc81OBeAzr15+0=; b=SmIi6Jm1/SejTYh4b28nn4yL2k4l+avt/f5yLUQtuhTvPBg1+DP5/s7hge5kHHGHH8 JtmiCEVvBjTt/C/IjsK28yqFDcDFxw5mvzDhPBfTfAkTsGToBXNfck5v+Ij/A3nbHN9+ se3azOuSPtSA6xigQYfqpwpAElgE8W7Zio4vcm0OVldQBdEyGw5AljI7G6pMkdEA1qaf hBAGsXEAMwZ0W9FSYnM/m7QwIElgSKIWl4TyVDib4Q8NoVwhGY5Cph6WyIyy0jQ7F0/y KgVIyr5efKT0a1isD5i9cLyzhpxU0MnukntSNqXwuSSArwL2r3cI++3jwZjwphqvQHvK Au0Q== 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 y24-v6si15678382pfm.141.2018.11.11.12.37.11; Sun, 11 Nov 2018 12:37:26 -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 S1730115AbeKLFsL (ORCPT + 99 others); Mon, 12 Nov 2018 00:48:11 -0500 Received: from shadbolt.e.decadent.org.uk ([88.96.1.126]:49670 "EHLO shadbolt.e.decadent.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730059AbeKLFsK (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-0000oF-Ba; Sun, 11 Nov 2018 19:58:40 +0000 Received: from ben by deadeye with local (Exim 4.91) (envelope-from ) id 1gLvsT-0001bX-Bx; 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, "Juergen Gross" , "David S. Miller" , "Ross Lagerwall" , "Ben Hutchings" Date: Sun, 11 Nov 2018 19:49:05 +0000 Message-ID: X-Mailer: LinuxStableQueue (scripts by bwh) Subject: [PATCH 3.16 173/366] xen-netfront: Fix mismatched rtnl_unlock 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: Ross Lagerwall commit cb257783c2927b73614b20f915a91ff78aa6f3e8 upstream. Fixes: f599c64fdf7d ("xen-netfront: Fix race between device setup and open") Reported-by: Ben Hutchings Signed-off-by: Ross Lagerwall Reviewed-by: Juergen Gross Signed-off-by: David S. Miller Signed-off-by: Ben Hutchings --- drivers/net/xen-netfront.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) --- a/drivers/net/xen-netfront.c +++ b/drivers/net/xen-netfront.c @@ -1857,7 +1857,7 @@ static int talk_to_netback(struct xenbus err = xen_net_read_mac(dev, info->netdev->dev_addr); if (err) { xenbus_dev_fatal(dev, err, "parsing %s/mac", dev->nodename); - goto out; + goto out_unlocked; } rtnl_lock(); @@ -1969,6 +1969,7 @@ abort_transaction_no_dev_fatal: xennet_destroy_queues(info); out: rtnl_unlock(); +out_unlocked: device_unregister(&dev->dev); return err; }