diff options
author | Cong Wang <amwang@redhat.com> | 2013-01-22 16:09:50 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2013-01-28 00:15:27 -0500 |
commit | cec771d646d6c9a6f123b50e132ab142342dcb97 (patch) | |
tree | d0591d47af01fb210a16635ff316e77161c5ec3a /net/decnet/dn_nsp_out.c | |
parent | 78fb2de711ec28997bf38bcf3e48e108e907be77 (diff) |
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 'net/decnet/dn_nsp_out.c')
-rw-r--r-- | net/decnet/dn_nsp_out.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/decnet/dn_nsp_out.c b/net/decnet/dn_nsp_out.c index 8a96047c7c94..1aaa51ebbda6 100644 --- a/net/decnet/dn_nsp_out.c +++ b/net/decnet/dn_nsp_out.c | |||
@@ -598,7 +598,7 @@ void dn_nsp_send_disc(struct sock *sk, unsigned char msgflg, | |||
598 | if (reason == 0) | 598 | if (reason == 0) |
599 | reason = le16_to_cpu(scp->discdata_out.opt_status); | 599 | reason = le16_to_cpu(scp->discdata_out.opt_status); |
600 | 600 | ||
601 | dn_nsp_do_disc(sk, msgflg, reason, gfp, sk->sk_dst_cache, ddl, | 601 | dn_nsp_do_disc(sk, msgflg, reason, gfp, __sk_dst_get(sk), ddl, |
602 | scp->discdata_out.opt_data, scp->addrrem, scp->addrloc); | 602 | scp->discdata_out.opt_data, scp->addrrem, scp->addrloc); |
603 | } | 603 | } |
604 | 604 | ||