From mboxrd@z Thu Jan 1 00:00:00 1970 From: Li RongQing Subject: [PATCH][net-next] net: remove BUG_ON from __pskb_pull_tail Date: Mon, 12 Nov 2018 17:26:13 +0800 Message-ID: <1542014773-23361-1-git-send-email-lirongqing@baidu.com> To: netdev@vger.kernel.org Return-path: Received: from mx58.baidu.com ([61.135.168.58]:40739 "EHLO tc-sys-mailedm01.tc.baidu.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1728396AbeKLTSr (ORCPT ); Mon, 12 Nov 2018 14:18:47 -0500 Received: from localhost (cp01-cos-dev01.cp01.baidu.com [10.92.119.46]) by tc-sys-mailedm01.tc.baidu.com (Postfix) with ESMTP id 89A46204004F for ; Mon, 12 Nov 2018 17:26:13 +0800 (CST) Sender: netdev-owner@vger.kernel.org List-ID: 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 --- net/core/skbuff.c | 1 - 1 file changed, 1 deletion(-) diff --git a/net/core/skbuff.c b/net/core/skbuff.c index 396fcb3baad0..cd668b52f96f 100644 --- a/net/core/skbuff.c +++ b/net/core/skbuff.c @@ -1925,7 +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. */ -- 2.16.2