From: Samuel Ortiz Date: Tue, 26 Mar 2013 13:35:57 +0000 (+0100) Subject: NFC: llcp: Keep the connected socket parent pointer alive X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=39a352a5b5896403ad4ce842a9bc3845a01c02cd;p=openwrt%2Fstaging%2Fblogic.git NFC: llcp: Keep the connected socket parent pointer alive And avoid decreasing the ack log twice when dequeueing connected LLCP sockets. Signed-off-by: Samuel Ortiz --- diff --git a/net/nfc/llcp/sock.c b/net/nfc/llcp/sock.c index e488e440186a..8f025746f337 100644 --- a/net/nfc/llcp/sock.c +++ b/net/nfc/llcp/sock.c @@ -270,7 +270,9 @@ struct sock *nfc_llcp_accept_dequeue(struct sock *parent, } if (sk->sk_state == LLCP_CONNECTED || !newsock) { - nfc_llcp_accept_unlink(sk); + list_del_init(&lsk->accept_queue); + sock_put(sk); + if (newsock) sock_graft(sk, newsock);