Re: [PATCH net-next v1] l2tp: fix reading optional fields

2019-01-23 Thread Jacob Wen
On 1/23/19 10:51 AM, Eric Dumazet wrote: On 01/22/2019 06:30 PM, Jacob Wen wrote: Use pskb_may_pull() to make sure the optional fields are in skb linear parts. Signed-off-by: Jacob Wen --- v1: fix warning: ISO C90 forbids mixed declarations and code --- net/l2tp/l2tp_core.c | 12

Re: [PATCH net-next v1] l2tp: fix reading optional fields

2019-01-22 Thread Eric Dumazet
On 01/22/2019 06:30 PM, Jacob Wen wrote: > Use pskb_may_pull() to make sure the optional fields are in skb linear > parts. > > Signed-off-by: Jacob Wen > --- > v1: fix warning: ISO C90 forbids mixed declarations and code > --- > net/l2tp/l2tp_core.c | 12 +++- > 1 file changed, 11 ins

[PATCH net-next v1] l2tp: fix reading optional fields

2019-01-22 Thread Jacob Wen
Use pskb_may_pull() to make sure the optional fields are in skb linear parts. Signed-off-by: Jacob Wen --- v1: fix warning: ISO C90 forbids mixed declarations and code --- net/l2tp/l2tp_core.c | 12 +++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/net/l2tp/l2tp_core.c b