NFC: llcp: Decrease socket ack log when accepting a connection
authorSamuel Ortiz <sameo@linux.intel.com>
Thu, 21 Feb 2013 10:04:45 +0000 (11:04 +0100)
committerSamuel Ortiz <sameo@linux.intel.com>
Fri, 8 Mar 2013 13:25:04 +0000 (14:25 +0100)
This is really difficult to test with real NFC devices, but without
this fix an LLCP server will eventually refuse new connections.

Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
net/nfc/llcp/sock.c

index 5332751943a9ec564befadda63a5a3749d7434c1..5c7cdf3f2a83b5a6a85033744121727ecddba70d 100644 (file)
@@ -278,6 +278,8 @@ struct sock *nfc_llcp_accept_dequeue(struct sock *parent,
 
                        pr_debug("Returning sk state %d\n", sk->sk_state);
 
+                       sk_acceptq_removed(parent);
+
                        return sk;
                }