[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CACCGGhDz6nAqoKUaZ+Ud7O7Srm1ygt=6UgSrydajizJfWZsRPQ@mail.gmail.com>
Date: Mon, 14 Oct 2019 11:11:10 +0100
From: Paul Durrant <pdurrant@...il.com>
To: Juergen Gross <jgross@...e.com>
Cc: xen-devel <xen-devel@...ts.xenproject.org>, netdev@...r.kernel.org,
linux-kernel@...r.kernel.org, Wei Liu <wei.liu@...nel.org>,
Paul Durrant <paul@....org>,
"David S. Miller" <davem@...emloft.net>, stable@...r.kernel.org
Subject: Re: [PATCH 1/2] xen/netback: fix error path of xenvif_connect_data()
On Mon, 14 Oct 2019 at 10:09, Juergen Gross <jgross@...e.com> 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: <stable@...r.kernel.org> # 3.12
> Signed-off-by: Juergen Gross <jgross@...e.com>
Yes, looks like this should have been cleaned up a long time ago.
Reviewed-by: Paul Durrant <paul@....org>
> ---
> 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
>
Powered by blists - more mailing lists