]> git.baikalelectronics.ru Git - kernel.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)
commit57ffccca5087881bf927cbb26e3183df4abe9e8f
tree04bcb32899722e30dab4be6a65cd6ed1e6430909
parent20995055fded87663c7dbecb930a301083a59395
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: 6dccaef708f9ef ("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