aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/linux/skbuff.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/skbuff.h b/include/linux/skbuff.h
index 8cac356b77b2..aeaad97e6815 100644
--- a/include/linux/skbuff.h
+++ b/include/linux/skbuff.h
@@ -1442,7 +1442,7 @@ extern int ___pskb_trim(struct sk_buff *skb, unsigned int len);
1442 1442
1443static inline void __skb_trim(struct sk_buff *skb, unsigned int len) 1443static inline void __skb_trim(struct sk_buff *skb, unsigned int len)
1444{ 1444{
1445 if (unlikely(skb->data_len)) { 1445 if (unlikely(skb_is_nonlinear(skb))) {
1446 WARN_ON(1); 1446 WARN_ON(1);
1447 return; 1447 return;
1448 } 1448 }