[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20191027203317.530252227@linuxfoundation.org>
Date: Sun, 27 Oct 2019 22:01:42 +0100
From: Greg Kroah-Hartman <gregkh@...uxfoundation.org>
To: linux-kernel@...r.kernel.org
Cc: Greg Kroah-Hartman <gregkh@...uxfoundation.org>,
stable@...r.kernel.org, Juergen Gross <jgross@...e.com>,
Paul Durrant <paul@....org>, Wei Liu <wei.liu@...nel.org>,
"David S. Miller" <davem@...emloft.net>
Subject: [PATCH 4.19 90/93] xen/netback: fix error path of xenvif_connect_data()
From: Juergen Gross <jgross@...e.com>
commit 3d5c1a037d37392a6859afbde49be5ba6a70a6b3 upstream.
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>
Reviewed-by: Paul Durrant <paul@....org>
Reviewed-by: Wei Liu <wei.liu@...nel.org>
Signed-off-by: David S. Miller <davem@...emloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@...uxfoundation.org>
---
drivers/net/xen-netback/interface.c | 1 -
1 file changed, 1 deletion(-)
--- a/drivers/net/xen-netback/interface.c
+++ b/drivers/net/xen-netback/interface.c
@@ -718,7 +718,6 @@ err_unmap:
xenvif_unmap_frontend_data_rings(queue);
netif_napi_del(&queue->napi);
err:
- module_put(THIS_MODULE);
return err;
}
Powered by blists - more mailing lists