RE: [EXT] [PATCH net-next v3 2/2] nfc: Do not send datagram if socket state isn't LLCP_BOUND

From: Suman Ghosh
Date: Tue Dec 05 2023 - 06:05:17 EST


>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@xxxxxxxx>
>Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@xxxxxxxxxx>
>---
Reviewed-by: Suman Ghosh <sumang@xxxxxxxxxxx>
> net/nfc/llcp_sock.c | 5 +++++