summaryrefslogtreecommitdiff
path: root/net
diff options
context:
space:
mode:
authorLi RongQing <lirongqing@baidu.com>2018-11-13 09:16:52 +0800
committerDavid S. Miller <davem@davemloft.net>2018-11-15 15:07:50 -0800
commit982c17b9e3c27389a8d214333c686dab0e95cf63 (patch)
treeb565fe0a1aa9c700208d9242a6553478b79ea3bb /net
parent7e18750cda3d0df7c35ed1a60612229f36b957e8 (diff)
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>
Diffstat (limited to 'net')
-rw-r--r--net/core/skbuff.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/net/core/skbuff.c b/net/core/skbuff.c
index fcb1155a00ec..f95ab41c9fb9 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;