xen/netback: fix error path of xenvif_connect_data()

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: 279f438e36 ("xen-netback: Don't destroy the netdev until the vif is shut down")
Cc: <stable@vger.kernel.org> # 3.12
Signed-off-by: Juergen Gross <jgross@suse.com>
Reviewed-by: Paul Durrant <paul@xen.org>
Reviewed-by: Wei Liu <wei.liu@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
Juergen Gross 2019-10-18 09:45:49 +02:00 committed by David S. Miller
parent 580a05f9d4
commit 3d5c1a037d
1 changed files with 0 additions and 1 deletions

View File

@ -719,7 +719,6 @@ int xenvif_connect_data(struct xenvif_queue *queue,
xenvif_unmap_frontend_data_rings(queue); xenvif_unmap_frontend_data_rings(queue);
netif_napi_del(&queue->napi); netif_napi_del(&queue->napi);
err: err:
module_put(THIS_MODULE);
return err; return err;
} }