]> git.baikalelectronics.ru Git - kernel.git/commit
tcp: check local var (timeo) before socket fields in one test
authorEric Dumazet <edumazet@google.com>
Mon, 15 Nov 2021 19:02:47 +0000 (11:02 -0800)
committerDavid S. Miller <davem@davemloft.net>
Tue, 16 Nov 2021 13:10:35 +0000 (13:10 +0000)
commit9b0df294b6dd03475e1a4a7662a296b48fbbe187
tree6d6757ee44e509a9afa4f9187f8612a5ae850caa
parent4ae7ff61863fcdb06db31139c436982c1e5a952b
tcp: check local var (timeo) before socket fields in one test

Testing timeo before sk_err/sk_state/sk_shutdown makes more sense.

Modern applications use non-blocking IO, while a socket is terminated
only once during its life time.

Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/tcp.c