diff options
| -rw-r--r-- | drivers/net/vxlan.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/net/vxlan.c b/drivers/net/vxlan.c index 50b62db213b0..30b04cf2bb1e 100644 --- a/drivers/net/vxlan.c +++ b/drivers/net/vxlan.c | |||
| @@ -2439,7 +2439,8 @@ static int vxlan_fill_metadata_dst(struct net_device *dev, struct sk_buff *skb) | |||
| 2439 | 2439 | ||
| 2440 | rt = vxlan_get_route(vxlan, dev, sock4, skb, 0, info->key.tos, | 2440 | rt = vxlan_get_route(vxlan, dev, sock4, skb, 0, info->key.tos, |
| 2441 | info->key.u.ipv4.dst, | 2441 | info->key.u.ipv4.dst, |
| 2442 | &info->key.u.ipv4.src, dport, sport, NULL, info); | 2442 | &info->key.u.ipv4.src, dport, sport, |
| 2443 | &info->dst_cache, info); | ||
| 2443 | if (IS_ERR(rt)) | 2444 | if (IS_ERR(rt)) |
| 2444 | return PTR_ERR(rt); | 2445 | return PTR_ERR(rt); |
| 2445 | ip_rt_put(rt); | 2446 | ip_rt_put(rt); |
| @@ -2450,7 +2451,8 @@ static int vxlan_fill_metadata_dst(struct net_device *dev, struct sk_buff *skb) | |||
| 2450 | 2451 | ||
| 2451 | ndst = vxlan6_get_route(vxlan, dev, sock6, skb, 0, info->key.tos, | 2452 | ndst = vxlan6_get_route(vxlan, dev, sock6, skb, 0, info->key.tos, |
| 2452 | info->key.label, &info->key.u.ipv6.dst, | 2453 | info->key.label, &info->key.u.ipv6.dst, |
| 2453 | &info->key.u.ipv6.src, dport, sport, NULL, info); | 2454 | &info->key.u.ipv6.src, dport, sport, |
| 2455 | &info->dst_cache, info); | ||
| 2454 | if (IS_ERR(ndst)) | 2456 | if (IS_ERR(ndst)) |
| 2455 | return PTR_ERR(ndst); | 2457 | return PTR_ERR(ndst); |
| 2456 | dst_release(ndst); | 2458 | dst_release(ndst); |
