mirror of https://gitee.com/openkylin/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 <lirongqing@baidu.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
7e18750cda
commit
982c17b9e3
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue