Commit 982c17b9 authored by Li RongQing's avatar Li RongQing Committed by David S. Miller
Browse files

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: default avatarLi RongQing <lirongqing@baidu.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 7e18750c
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
@@ -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;