Re: [PATCH net] drivers/net/wan/hdlc_x25: Added needed_headroom and a skb->len check

2020-08-15 Thread Xie He
On Fri, Aug 14, 2020 at 8:41 PM David Miller wrote: > > Applied, thanks. Thank you, David!

Re: [PATCH net] drivers/net/wan/hdlc_x25: Added needed_headroom and a skb->len check

2020-08-15 Thread David Miller
From: Xie He Date: Thu, 13 Aug 2020 11:17:04 -0700 > 1. Added a skb->len check > > This driver expects upper layers to include a pseudo header of 1 byte > when passing down a skb for transmission. This driver will read this > 1-byte header. This patch added a skb->len check before reading the >

[PATCH net] drivers/net/wan/hdlc_x25: Added needed_headroom and a skb->len check

2020-08-13 Thread Xie He
1. Added a skb->len check This driver expects upper layers to include a pseudo header of 1 byte when passing down a skb for transmission. This driver will read this 1-byte header. This patch added a skb->len check before reading the header to make sure the header exists. 2. Added needed_headroom