Re: [Patch net] nfc: check sock state in llcp_sock_getname()

2016-01-03 Thread Cong Wang
On Sat, Jan 2, 2016 at 12:03 AM, Dmitry Vyukov wrote: > On Sat, Jan 2, 2016 at 1:34 AM, Cong Wang wrote: >> llcp_sock_getname() checks llcp_sock->dev to make sure >> llcp_sock is already connected or bound, however, we could >> be in the middle of llcp_sock_bind() where llcp_sock->dev >> is bound

Re: [Patch net] nfc: check sock state in llcp_sock_getname()

2016-01-02 Thread Dmitry Vyukov
On Sat, Jan 2, 2016 at 1:34 AM, Cong Wang wrote: > llcp_sock_getname() checks llcp_sock->dev to make sure > llcp_sock is already connected or bound, however, we could > be in the middle of llcp_sock_bind() where llcp_sock->dev > is bound and llcp_sock->service_name_len is set, > but llcp_sock->ser

[Patch net] nfc: check sock state in llcp_sock_getname()

2016-01-01 Thread Cong Wang
llcp_sock_getname() checks llcp_sock->dev to make sure llcp_sock is already connected or bound, however, we could be in the middle of llcp_sock_bind() where llcp_sock->dev is bound and llcp_sock->service_name_len is set, but llcp_sock->service_name is not, in this case we would lead to copy some by