aboutsummaryrefslogtreecommitdiffstats
path: root/net/ipv6
diff options
context:
space:
mode:
authorEric Dumazet <edumazet@google.com>2012-07-06 03:19:05 -0400
committerDavid S. Miller <davem@davemloft.net>2012-07-06 03:23:41 -0400
commitc56bf6fe785abbd83751a462f0c7067f7145b97a (patch)
tree66bcddd02116f320c362fb8da15effdcdc81d1fb /net/ipv6
parent883dd4fb59aa9d2d28f0163e81af7942a79910ca (diff)
ipv6: fix a bad cast in ip6_dst_lookup_tail()
Fix a bug in ip6_dst_lookup_tail(), where typeof(dst) is "struct dst_entry **", not "struct dst_entry *" Reported-by: Fengguang Wu <wfg@linux.intel.com> Signed-off-by: Eric Dumazet <edumazet@google.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv6')
-rw-r--r--net/ipv6/ip6_output.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ipv6/ip6_output.c b/net/ipv6/ip6_output.c
index 6d9c0abc8c2..c6af5963a20 100644
--- a/net/ipv6/ip6_output.c
+++ b/net/ipv6/ip6_output.c
@@ -975,7 +975,7 @@ static int ip6_dst_lookup_tail(struct sock *sk,
975 * dst entry of the nexthop router 975 * dst entry of the nexthop router
976 */ 976 */
977 rcu_read_lock(); 977 rcu_read_lock();
978 rt = (struct rt6_info *) dst; 978 rt = (struct rt6_info *) *dst;
979 n = rt->n; 979 n = rt->n;
980 if (n && !(n->nud_state & NUD_VALID)) { 980 if (n && !(n->nud_state & NUD_VALID)) {
981 struct inet6_ifaddr *ifp; 981 struct inet6_ifaddr *ifp;