Received: by 2002:a5b:505:0:0:0:0:0 with SMTP id o5csp4348038ybp; Mon, 14 Oct 2019 03:15:18 -0700 (PDT) X-Google-Smtp-Source: APXvYqyx70JHYlEe1iy52H9KjnxyriIFTOQtBT6Z0bxeVz0rcUm/8fOk8DuJdlqalKSrj91w0FbW X-Received: by 2002:a50:cbcd:: with SMTP id l13mr27229089edi.18.1571048118155; Mon, 14 Oct 2019 03:15:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571048118; cv=none; d=google.com; s=arc-20160816; b=T7tVxDsK4f82cFs+gfJhUB4zVfrFuFHSnCpdGF4g1u+IL40VYcVVOQvPyQkOw6TCOl fYMN3qoDf7sGtm4FIh0YYaAp0WqUbeFce8c96RYp+Pk9evm9HaIC2tHue5pRLkr7Ezaw OlyaAYYIdVSDDZ5ciK+502hIhTr9w4lVepLca8qgwrnhUdsb5abPwMQfDSht3/PVpHUr 3LZKj1cYyx+1r7uaiuhh4oDWcvuUnLNWoWEBYv5HazdIDzazttT3OCIdKwig5a+XIxov 2cApY0T+0ldb13ct/Jcu2Ltcq2qqMiwvofZYQ59KTf9+Y9HhwtejIlqu6HbE6LNhVeNH amZQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=u6WI0gDjbvLg3JzSkl1yVQQFCwF5JM/S0gxkF6bM6fg=; b=gtCIRJ7L1DgMhXiLyqrGpzOb7hNE1ULevfgedxDSYxYlRmzmsSZTurTqarQlLy2ZGs icStl9fiuOHUj8AV/deIzA5LnBnzIjuozIeld17epqkAdQRFV00KaWNayEvSUyw4Sxkb 7GERCY/YnW1KC/+JQS//Pr4jbC1IfUq3920LyHsnD7rhH1kJAswBSywse1seDa6CcedW tTahvcUPDPyQmuBCXNTCClOPvFFD8ZXjknwMUhdh4Uz7qvZtnh19e/H+UgJgiqUy3CaX 0c5oGdxJTauWFzhlBH0A0Tu5GLzBlYAhfZ4SttZkJcechoWI5MQHuYuKCLWP3ur1IrA5 cjIg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=lBY+KsDo; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g10si10465733ejc.424.2019.10.14.03.14.54; Mon, 14 Oct 2019 03:15:18 -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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=lBY+KsDo; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731305AbfJNKLY (ORCPT + 99 others); Mon, 14 Oct 2019 06:11:24 -0400 Received: from mail-pg1-f193.google.com ([209.85.215.193]:33781 "EHLO mail-pg1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730860AbfJNKLX (ORCPT ); Mon, 14 Oct 2019 06:11:23 -0400 Received: by mail-pg1-f193.google.com with SMTP id i76so9840550pgc.0; Mon, 14 Oct 2019 03:11:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=u6WI0gDjbvLg3JzSkl1yVQQFCwF5JM/S0gxkF6bM6fg=; b=lBY+KsDoJUg2hKJs7lp8p8z4x5tDAIj44Rj+aOGnsc7Inftl94nbqA0J0mKXUfDTYT QeRQihPX6F3qwA0JnLbUVxFOYnix5KjZebKetNhRYXQUuSbNc9oH58UrD5vRXY5ckaze Bfj3ploISAFEcjrqZuu/ms2lVfnWBhQLnitoRsqsDE/bqp3+nSuYpLdkkWiU6tXjxsiq B9jYhvh42Vy5qQg1ZlpbFsI/zPK1qfuvEy8mRTVUROOTZzIGss8e1qGfv6QsNX6DP8ov clD+1K+1Lj0yn0HyUbUfbyrab+M0EYUMY/Rh9ao7p213ftX+UygJAaKK1ziLIWpq9VJL ZoUA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=u6WI0gDjbvLg3JzSkl1yVQQFCwF5JM/S0gxkF6bM6fg=; b=c0Khj+exKbCl7MV3A3LZ2pGX1L1l0tjMpSEO/jDkG0AcXqGqahHB5az/vAXm0CPw8b FwGAr0QI5cIObWwEEPk5kECXYQw+EJSPqr/3rhkg3FX8e+xKpmimT2lNzn53QVpRCG5G 3wYwV/LMvfmsqSaqY7EBkB2jNfgjebyzNSvV7OVln+IY37PfNrZSgthRDdDhvuxvhZ83 VAm8lpMr1pq9Dl/yS1kS9iGDva+iG0nOeaMorfwmNEoG2GHGfpMnKEIpJTObxsZvtvGr HaqFXbowlO2k3faH4Omhsxb0EyuahxDGLLR8eI+Tc5DAGI9XaQus3V4d21z0hPKbCVol RIIA== X-Gm-Message-State: APjAAAVXHOLS65x699Al3yNdd2XZ5qdmy7+lmcxHnMjQhTgWfDwypd2k iRKI4Y3ieOm3I7quOR47DeiMAFs7w4FKt1Dx8QU= X-Received: by 2002:a17:90a:c684:: with SMTP id n4mr35304592pjt.33.1571047881584; Mon, 14 Oct 2019 03:11:21 -0700 (PDT) MIME-Version: 1.0 References: <20191014090910.9701-1-jgross@suse.com> <20191014090910.9701-2-jgross@suse.com> In-Reply-To: <20191014090910.9701-2-jgross@suse.com> From: Paul Durrant Date: Mon, 14 Oct 2019 11:11:10 +0100 Message-ID: Subject: Re: [PATCH 1/2] xen/netback: fix error path of xenvif_connect_data() To: Juergen Gross Cc: xen-devel , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Wei Liu , Paul Durrant , "David S. Miller" , stable@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 14 Oct 2019 at 10:09, Juergen Gross wrote: > > xenvif_connect_data() calls module_put() in case of error. This is > wrong as there is no related module_get(). > > Remove the superfluous module_put(). > > Fixes: 279f438e36c0a7 ("xen-netback: Don't destroy the netdev until the vif is shut down") > Cc: # 3.12 > Signed-off-by: Juergen Gross Yes, looks like this should have been cleaned up a long time ago. Reviewed-by: Paul Durrant > --- > drivers/net/xen-netback/interface.c | 1 - > 1 file changed, 1 deletion(-) > > diff --git a/drivers/net/xen-netback/interface.c b/drivers/net/xen-netback/interface.c > index 240f762b3749..103ed00775eb 100644 > --- a/drivers/net/xen-netback/interface.c > +++ b/drivers/net/xen-netback/interface.c > @@ -719,7 +719,6 @@ int xenvif_connect_data(struct xenvif_queue *queue, > xenvif_unmap_frontend_data_rings(queue); > netif_napi_del(&queue->napi); > err: > - module_put(THIS_MODULE); > return err; > } > > -- > 2.16.4 >