summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--include/linux/igmp.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/igmp.h b/include/linux/igmp.h
index cc85f4524dbf..9c94b2ea789c 100644
--- a/include/linux/igmp.h
+++ b/include/linux/igmp.h
@@ -110,7 +110,7 @@ struct ip_mc_list {
110static inline int ip_mc_may_pull(struct sk_buff *skb, unsigned int len) 110static inline int ip_mc_may_pull(struct sk_buff *skb, unsigned int len)
111{ 111{
112 if (skb_transport_offset(skb) + ip_transport_len(skb) < len) 112 if (skb_transport_offset(skb) + ip_transport_len(skb) < len)
113 return -EINVAL; 113 return 0;
114 114
115 return pskb_may_pull(skb, len); 115 return pskb_may_pull(skb, len);
116} 116}