aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/net/vxlan.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/vxlan.c b/drivers/net/vxlan.c
index 5f749a51f356..e75e4b2e6031 100644
--- a/drivers/net/vxlan.c
+++ b/drivers/net/vxlan.c
@@ -1093,7 +1093,7 @@ static int vxlan_igmp_join(struct vxlan_dev *vxlan)
1093 struct sock *sk = vs->sock->sk; 1093 struct sock *sk = vs->sock->sk;
1094 union vxlan_addr *ip = &vxlan->default_dst.remote_ip; 1094 union vxlan_addr *ip = &vxlan->default_dst.remote_ip;
1095 int ifindex = vxlan->default_dst.remote_ifindex; 1095 int ifindex = vxlan->default_dst.remote_ifindex;
1096 int ret; 1096 int ret = -EINVAL;
1097 1097
1098 lock_sock(sk); 1098 lock_sock(sk);
1099 if (ip->sa.sa_family == AF_INET) { 1099 if (ip->sa.sa_family == AF_INET) {
@@ -1121,7 +1121,7 @@ static int vxlan_igmp_leave(struct vxlan_dev *vxlan)
1121 struct sock *sk = vs->sock->sk; 1121 struct sock *sk = vs->sock->sk;
1122 union vxlan_addr *ip = &vxlan->default_dst.remote_ip; 1122 union vxlan_addr *ip = &vxlan->default_dst.remote_ip;
1123 int ifindex = vxlan->default_dst.remote_ifindex; 1123 int ifindex = vxlan->default_dst.remote_ifindex;
1124 int ret; 1124 int ret = -EINVAL;
1125 1125
1126 lock_sock(sk); 1126 lock_sock(sk);
1127 if (ip->sa.sa_family == AF_INET) { 1127 if (ip->sa.sa_family == AF_INET) {