Siddh Raman Pant 6ec0d7527c nfc: Do not send datagram if socket state isn't LLCP_BOUND
As we know we cannot send the datagram (state can be set to LLCP_CLOSED
by nfc_llcp_socket_release()), there is no need to proceed further.

Thus, bail out early from llcp_sock_sendmsg().

Signed-off-by: Siddh Raman Pant <code@siddh.me>
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Reviewed-by: Suman Ghosh <sumang@marvell.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2023-12-25 07:29:04 +00:00
..
2023-10-01 19:09:54 +01:00
2023-12-21 12:27:29 +01:00
2023-08-29 17:39:15 -07:00
2023-06-24 15:41:46 -07:00
2023-12-20 11:16:50 -08:00
2023-10-01 19:09:54 +01:00
2023-10-11 10:39:01 +01:00