Re: [PATCH 1/1] l2tp: Fix the connect status check in pppol2tp_getname

2016-08-19 Thread David Miller
From: f...@ikuai8.com Date: Fri, 19 Aug 2016 13:36:23 +0800 > From: Gao Feng > > The sk->sk_state is bits flag, so need use bit operation check > instead of value check. > > Signed-off-by: Gao Feng Applied.

Re: [PATCH 1/1] l2tp: Fix the connect status check in pppol2tp_getname

2016-08-19 Thread Guillaume Nault
On Fri, Aug 19, 2016 at 01:36:23PM +0800, f...@ikuai8.com wrote: > From: Gao Feng > > The sk->sk_state is bits flag, so need use bit operation check > instead of value check. > Tested-by: Guillaume Nault

[PATCH 1/1] l2tp: Fix the connect status check in pppol2tp_getname

2016-08-18 Thread fgao
From: Gao Feng The sk->sk_state is bits flag, so need use bit operation check instead of value check. Signed-off-by: Gao Feng --- net/l2tp/l2tp_ppp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net/l2tp/l2tp_ppp.c b/net/l2tp/l2tp_ppp.c index d9560aa..232cb92 100644 ---