aboutsummaryrefslogtreecommitdiffstats
path: root/net/lapb/lapb_iface.c
diff options
context:
space:
mode:
authorKuniyuki Iwashima <[email protected]>2025-07-02 22:35:14 +0000
committerJakub Kicinski <[email protected]>2025-07-09 01:05:25 +0000
commit772f01049c4b722b28b3f7025b4996379f127ebf (patch)
tree0386fb99a9cf7858a4415e78eb7acd2cc91bb325 /net/lapb/lapb_iface.c
parentaf_unix: Don't hold unix_state_lock() in __unix_dgram_recvmsg(). (diff)
downloadkernel-772f01049c4b722b28b3f7025b4996379f127ebf.tar.gz
kernel-772f01049c4b722b28b3f7025b4996379f127ebf.zip
af_unix: Don't check SOCK_DEAD in unix_stream_read_skb().
unix_stream_read_skb() checks SOCK_DEAD only when the dequeued skb is OOB skb. unix_stream_read_skb() is called for a SOCK_STREAM socket in SOCKMAP when data is sent to it. The function is invoked via sk_psock_verdict_data_ready(), which is set to sk->sk_data_ready(). During sendmsg(), we check if the receiver has SOCK_DEAD, so there is no point in checking it again later in ->read_skb(). Also, unix_read_skb() for SOCK_DGRAM does not have the test either. Let's remove the SOCK_DEAD test in unix_stream_read_skb(). Signed-off-by: Kuniyuki Iwashima <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'net/lapb/lapb_iface.c')
0 files changed, 0 insertions, 0 deletions