tcp: check local var (timeo) before socket fields in one test
mainline inclusion from mainline-v5.17-rc1 commit 8bd172b7 category: feature bugzilla: https://gitee.com/openeuler/kernel/issues/I65HYE Reference: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=8bd172b787298124ef75c0e466101107c036d54d --------------------------- 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> (cherry picked from commit 8bd172b7) Signed-off-by:
Liu Jian <liujian56@huawei.com>
Loading
Please sign in to comment