Re: [PATCH net] drivers/net/wan: lapb: Replace the skb->len checks with pskb_may_pull

2020-10-04 Thread David Miller
From: Xie He Date: Sat, 3 Oct 2020 17:46:19 -0700 > The purpose of these skb->len checks in these drivers is to ensure that > there is a header in the skb available to be read and pulled. > > However, we already have the pskb_may_pull function for this purpose. > > The pskb_may_pull function a

[PATCH net] drivers/net/wan: lapb: Replace the skb->len checks with pskb_may_pull

2020-10-03 Thread Xie He
The purpose of these skb->len checks in these drivers is to ensure that there is a header in the skb available to be read and pulled. However, we already have the pskb_may_pull function for this purpose. The pskb_may_pull function also correctly handles non-linear skbs. (Also delete the word "ch