]> asedeno.scripts.mit.edu Git - linux.git/commit
xen/netback: fix error path of xenvif_connect_data()
authorJuergen Gross <jgross@suse.com>
Fri, 18 Oct 2019 07:45:49 +0000 (09:45 +0200)
committerDavid S. Miller <davem@davemloft.net>
Sat, 19 Oct 2019 18:43:29 +0000 (11:43 -0700)
commit3d5c1a037d37392a6859afbde49be5ba6a70a6b3
tree04bcb32899722e30dab4be6a65cd6ed1e6430909
parent580a05f9d4ada3bfb689140d0efec1efdb8a48da
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: 279f438e36c0a7 ("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>
drivers/net/xen-netback/interface.c