From: Li RongQing Date: Tue, 13 Nov 2018 01:16:52 +0000 (+0800) Subject: net: remove BUG_ON from __pskb_pull_tail X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=982c17b9e3c27389a8d214333c686dab0e95cf63;p=linux.git net: remove BUG_ON from __pskb_pull_tail if list is NULL pointer, and the following access of list will trigger panic, which is same as BUG_ON Signed-off-by: Li RongQing Signed-off-by: David S. Miller --- diff --git a/net/core/skbuff.c b/net/core/skbuff.c index fcb1155a00ec3..f95ab41c9fb9c 100644 --- a/net/core/skbuff.c +++ b/net/core/skbuff.c @@ -1925,8 +1925,6 @@ void *__pskb_pull_tail(struct sk_buff *skb, int delta) struct sk_buff *insp = NULL; do { - BUG_ON(!list); - if (list->len <= eat) { /* Eaten as whole. */ eat -= list->len;