NFC: llcp: Fix non blocking sockets connections
Without the new LLCP_CONNECTING state, non blocking sockets will be woken up with a POLLHUP right after calling connect() because their state is stuck at LLCP_CLOSED. That prevents userspace from implementing any proper non blocking socket based NFC p2p client. Cc: stable@vger.kernel.org Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
This commit is contained in:
@@ -19,6 +19,7 @@
|
||||
|
||||
enum llcp_state {
|
||||
LLCP_CONNECTED = 1, /* wait_for_packet() wants that */
|
||||
LLCP_CONNECTING,
|
||||
LLCP_DISCONNECTING,
|
||||
LLCP_CLOSED,
|
||||
LLCP_BOUND,
|
||||
|
Reference in New Issue
Block a user