diff options
| -rw-r--r-- | drivers/net/vxlan.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/net/vxlan.c b/drivers/net/vxlan.c index dec9820bc182..eb59b14d5ee0 100644 --- a/drivers/net/vxlan.c +++ b/drivers/net/vxlan.c | |||
| @@ -1132,7 +1132,6 @@ static int vxlan_udp_encap_recv(struct sock *sk, struct sk_buff *skb) | |||
| 1132 | { | 1132 | { |
| 1133 | struct vxlan_sock *vs; | 1133 | struct vxlan_sock *vs; |
| 1134 | struct vxlanhdr *vxh; | 1134 | struct vxlanhdr *vxh; |
| 1135 | __be16 port; | ||
| 1136 | 1135 | ||
| 1137 | /* Need Vxlan and inner Ethernet header to be present */ | 1136 | /* Need Vxlan and inner Ethernet header to be present */ |
| 1138 | if (!pskb_may_pull(skb, VXLAN_HLEN)) | 1137 | if (!pskb_may_pull(skb, VXLAN_HLEN)) |
| @@ -1150,8 +1149,6 @@ static int vxlan_udp_encap_recv(struct sock *sk, struct sk_buff *skb) | |||
| 1150 | if (iptunnel_pull_header(skb, VXLAN_HLEN, htons(ETH_P_TEB))) | 1149 | if (iptunnel_pull_header(skb, VXLAN_HLEN, htons(ETH_P_TEB))) |
| 1151 | goto drop; | 1150 | goto drop; |
| 1152 | 1151 | ||
| 1153 | port = inet_sk(sk)->inet_sport; | ||
| 1154 | |||
| 1155 | vs = rcu_dereference_sk_user_data(sk); | 1152 | vs = rcu_dereference_sk_user_data(sk); |
| 1156 | if (!vs) | 1153 | if (!vs) |
| 1157 | goto drop; | 1154 | goto drop; |
