diff --git a/net/core/dev.c b/net/core/dev.c index 9094c0fb8c68..39516a5766e5 100644 --- a/net/core/dev.c +++ b/net/core/dev.c @@ -4030,7 +4030,8 @@ static struct sk_buff *validate_xmit_skb(struct sk_buff *skb, struct net_device } } - skb = validate_xmit_xfrm(skb, features, again); + if (skb_sec_path(skb) + skb = validate_xmit_xfrm(skb, features, again); return skb;