diff options
author | Cong Wang <amwang@redhat.com> | 2013-01-22 21:09:50 +0000 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2013-01-28 00:15:27 -0500 |
commit | cec771d646d6c9a6f123b50e132ab142342dcb97 (patch) | |
tree | d0591d47af01fb210a16635ff316e77161c5ec3a /include/net/dn_route.h | |
parent | 78fb2de711ec28997bf38bcf3e48e108e907be77 (diff) | |
download | linux-cec771d646d6c9a6f123b50e132ab142342dcb97.tar.gz linux-cec771d646d6c9a6f123b50e132ab142342dcb97.tar.bz2 linux-cec771d646d6c9a6f123b50e132ab142342dcb97.zip |
decnet: use correct RCU API to deref sk_dst_cache field
sock->sk_dst_cache is protected by RCU, therefore we should
use __sk_dst_get() to deref it once we lock the sock.
This fixes several sparse warnings.
Cc: linux-decnet-user@lists.sourceforge.net
Cc: Eric Dumazet <eric.dumazet@gmail.com>
Cc: David S. Miller <davem@davemloft.net>
Signed-off-by: Cong Wang <amwang@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net/dn_route.h')
-rw-r--r-- | include/net/dn_route.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/net/dn_route.h b/include/net/dn_route.h index 4f7d6a182381..2e9d317c82dc 100644 --- a/include/net/dn_route.h +++ b/include/net/dn_route.h @@ -16,7 +16,7 @@ *******************************************************************************/ extern struct sk_buff *dn_alloc_skb(struct sock *sk, int size, gfp_t pri); -extern int dn_route_output_sock(struct dst_entry **pprt, struct flowidn *, struct sock *sk, int flags); +extern int dn_route_output_sock(struct dst_entry __rcu **pprt, struct flowidn *, struct sock *sk, int flags); extern int dn_cache_dump(struct sk_buff *skb, struct netlink_callback *cb); extern void dn_rt_cache_flush(int delay); |