Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp2015068imm; Thu, 21 Jun 2018 06:02:19 -0700 (PDT) X-Google-Smtp-Source: ADUXVKJC6/lE+K53y0K31EiS0BJVDYc/JM3OmLhCU+q9wuP4jyd2d9XU1kIfARiIxWsEAygNt+Mf X-Received: by 2002:a65:4249:: with SMTP id d9-v6mr22653823pgq.362.1529586139510; Thu, 21 Jun 2018 06:02:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1529586139; cv=none; d=google.com; s=arc-20160816; b=O+qmCLvQEId4uCPPEDRshfzhQq0jrm25unRBsgzSpTzqf0ORcQhfIII43HGYzSHHdq YzO5DMRSGouCJQs2QB2cTdBnpI5CIGKAChzXs1au14CwLGg01x32Yiy1pJ6n6/1NX3DA Kn13l5lmfa39FcIsCWu7AEHYxmGkTmw4n0MVYz+neXGdWBCXlf9+Ypq76HQxPCGbAZMG HvcyEVCqGC/bhlU/whcEjy6YDWhYyu3vp4TboQ9xYIFrsYYtBsuW6k/ZQAISz3AlcHnC hVD7S0dI16qXJiqob0L7+q/x7FUnTAmuF6j3vcsIUqzRnreM5/ycv6GdsRXwGAOhdZ8b SU7g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:arc-authentication-results; bh=btzKxVaxvG1ETGUH1i+sc6uIoV35kfuANDkN5mNSO5U=; b=AU9ifHxpUzFDkLFeqVh4ALDmY8NLxpfro+li0nPGQWSFFY2lx1HATdXBH2Uby5uUcJ i6XrA7J6KZz+Sk5eASAa8JFtFI6Ic7eUoI9HMoIb6POSns3gHOBM69DS3Qcl8g1df1cV GTMOTch6y6vHjhIpArKZTfF2yYbWbDUv17alq8SZ2Vhk0nmVQHo3wNLHemxeI8h5zqBH 6hI7tS77SXTdlbkJMkTE/8TeW8I+f2y9zgca0VOxLqGW9cp5hcDxJ7hitgfHkJeYeZik nXwgxmlEzPf6fIalAi44Ga6wZkePR9WeSI92H/dQ3X7sDvPH5NVcESEBWuihf4jVXJyA KYNQ== 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 w21-v6si4941589pll.96.2018.06.21.06.02.04; Thu, 21 Jun 2018 06:02:19 -0700 (PDT) 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 S933424AbeFUNBH (ORCPT + 99 others); Thu, 21 Jun 2018 09:01:07 -0400 Received: from smtp03.citrix.com ([162.221.156.55]:63762 "EHLO SMTP03.CITRIX.COM" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932972AbeFUNAg (ORCPT ); Thu, 21 Jun 2018 09:00:36 -0400 X-IronPort-AV: E=Sophos;i="5.51,251,1526342400"; d="scan'208";a="58220301" From: Ross Lagerwall To: CC: Ross Lagerwall , Boris Ostrovsky , Juergen Gross , "David S. Miller" , , Subject: [PATCH 1/2] xen-netfront: Fix mismatched rtnl_unlock Date: Thu, 21 Jun 2018 14:00:20 +0100 Message-ID: <20180621130021.27029-2-ross.lagerwall@citrix.com> X-Mailer: git-send-email 2.9.5 In-Reply-To: <20180621130021.27029-1-ross.lagerwall@citrix.com> References: <20180621130021.27029-1-ross.lagerwall@citrix.com> MIME-Version: 1.0 Content-Type: text/plain Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Fixes: f599c64fdf7d ("xen-netfront: Fix race between device setup and open") Reported-by: Ben Hutchings Signed-off-by: Ross Lagerwall --- drivers/net/xen-netfront.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/net/xen-netfront.c b/drivers/net/xen-netfront.c index 922ce0a..ee4cb6c 100644 --- a/drivers/net/xen-netfront.c +++ b/drivers/net/xen-netfront.c @@ -1810,7 +1810,7 @@ static int talk_to_netback(struct xenbus_device *dev, 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(); @@ -1925,6 +1925,7 @@ static int talk_to_netback(struct xenbus_device *dev, xennet_destroy_queues(info); out: rtnl_unlock(); +out_unlocked: device_unregister(&dev->dev); return err; } -- 2.9.5