net: remove BUG_ON from __pskb_pull_tail
authorLi RongQing <lirongqing@baidu.com>
Tue, 13 Nov 2018 01:16:52 +0000 (09:16 +0800)
committerDavid S. Miller <davem@davemloft.net>
Thu, 15 Nov 2018 23:07:50 +0000 (15:07 -0800)
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 <lirongqing@baidu.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/skbuff.c

index fcb1155..f95ab41 100644 (file)
@@ -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;