Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 265155
b: refs/heads/master
c: d14730b
h: refs/heads/master
i:
  265153: df11636
  265151: 4e7d916
v: v3
  • Loading branch information
Eric Dumazet authored and David S. Miller committed Aug 1, 2011
1 parent 4cd8741 commit 06e7253
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: cfdf76474e1d8a56ac6cfae39f8559cfe9dfd7fd
refs/heads/master: d14730b8e9117c9b77aacd391c049b50163e9b61
9 changes: 6 additions & 3 deletions trunk/net/ipv6/inet6_connection_sock.c
Original file line number Diff line number Diff line change
Expand Up @@ -211,6 +211,7 @@ int inet6_csk_xmit(struct sk_buff *skb, struct flowi *fl_unused)
struct flowi6 fl6;
struct dst_entry *dst;
struct in6_addr *final_p, final;
int res;

memset(&fl6, 0, sizeof(fl6));
fl6.flowi6_proto = sk->sk_protocol;
Expand Down Expand Up @@ -241,12 +242,14 @@ int inet6_csk_xmit(struct sk_buff *skb, struct flowi *fl_unused)
__inet6_csk_dst_store(sk, dst, NULL, NULL);
}

skb_dst_set(skb, dst_clone(dst));
rcu_read_lock();
skb_dst_set_noref(skb, dst);

/* Restore final destination back after routing done */
ipv6_addr_copy(&fl6.daddr, &np->daddr);

return ip6_xmit(sk, skb, &fl6, np->opt);
res = ip6_xmit(sk, skb, &fl6, np->opt);
rcu_read_unlock();
return res;
}

EXPORT_SYMBOL_GPL(inet6_csk_xmit);

0 comments on commit 06e7253

Please sign in to comment.