decnet: use correct RCU API to deref sk_dst_cache field
authorCong Wang <amwang@redhat.com>
Tue, 22 Jan 2013 21:09:50 +0000 (21:09 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 28 Jan 2013 05:15:27 +0000 (00:15 -0500)
commitcec771d646d6c9a6f123b50e132ab142342dcb97
treed0591d47af01fb210a16635ff316e77161c5ec3a
parent78fb2de711ec28997bf38bcf3e48e108e907be77
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>
include/net/dn_route.h
net/decnet/af_decnet.c
net/decnet/dn_nsp_out.c
net/decnet/dn_route.c