Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit de18547d authored by Roopa Prabhu's avatar Roopa Prabhu Committed by David S. Miller
Browse files

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: default avatarkbuild test robot <fengguang.wu@intel.com>
Signed-off-by: default avatarRoopa Prabhu <roopa@cumulusnetworks.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 70c9bb8b
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;