From: Roopa Prabhu Date: Wed, 22 Jul 2015 05:49:00 +0000 (-0700) Subject: mpls_iptunnel: fix sparse warn: remove incorrect rcu_dereference X-Git-Tag: v4.9.8~3644^2~321 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=de18547d48c0e735309d6874852f048352e08a88;p=platform%2Fkernel%2Flinux-rpi3.git mpls_iptunnel: fix sparse warn: remove incorrect rcu_dereference fix for: net/mpls/mpls_iptunnel.c:73:19: sparse: incompatible types in comparison expression (different address spaces) remove incorrect rcu_dereference possibly left over from earlier revisions of the code. Reported-by: kbuild test robot Signed-off-by: Roopa Prabhu Signed-off-by: David S. Miller --- diff --git a/net/mpls/mpls_iptunnel.c b/net/mpls/mpls_iptunnel.c index eea096f..276f8c9 100644 --- a/net/mpls/mpls_iptunnel.c +++ b/net/mpls/mpls_iptunnel.c @@ -70,7 +70,7 @@ int mpls_output(struct sock *sk, struct sk_buff *skb) skb_orphan(skb); /* Find the output device */ - out_dev = rcu_dereference(dst->dev); + out_dev = dst->dev; if (!mpls_output_possible(out_dev) || !lwtstate || skb_warn_if_lro(skb)) goto drop;