aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/net/vxlan.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/vxlan.c b/drivers/net/vxlan.c
index 94603ee742ea..6080f8e7b0cd 100644
--- a/drivers/net/vxlan.c
+++ b/drivers/net/vxlan.c
@@ -2254,7 +2254,7 @@ static int vxlan_stop(struct net_device *dev)
2254 struct vxlan_sock *vs = vxlan->vn_sock; 2254 struct vxlan_sock *vs = vxlan->vn_sock;
2255 int ret = 0; 2255 int ret = 0;
2256 2256
2257 if (vs && vxlan_addr_multicast(&vxlan->default_dst.remote_ip) && 2257 if (vxlan_addr_multicast(&vxlan->default_dst.remote_ip) &&
2258 !vxlan_group_used(vn, vxlan)) { 2258 !vxlan_group_used(vn, vxlan)) {
2259 ret = vxlan_igmp_leave(vxlan); 2259 ret = vxlan_igmp_leave(vxlan);
2260 if (ret) 2260 if (ret)