From e0d3a09b0e2a5c3b5dbcfbf3b92048933aa87be9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=88=98=E5=A9=A720201110?= Date: Fri, 21 Jun 2024 17:23:35 +0800 Subject: [PATCH] fix parameter error in tcp_rt module I fond parameter usage error in net/ipv4/tcp_rt/core.c, when judging the rt->stage,the TCPRT_TYPE_NONE variable in case does not exisit because in net/ipv4/tcp_rt/core.c enum tcp_rt_stage { TCPRT_STAGE_NONE, TCPRT_STAGE_REQUEST, TCPRT_STAGE_RESPONSE, }; TCPRT_TYPE_NONE does not exist --- net/ipv4/tcp_rt/core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net/ipv4/tcp_rt/core.c b/net/ipv4/tcp_rt/core.c index 80f4ed5c8f05..07ea23cbc23a 100644 --- a/net/ipv4/tcp_rt/core.c +++ b/net/ipv4/tcp_rt/core.c @@ -225,7 +225,7 @@ static void tcp_rt_sk_release_local(const struct sock *sk, struct tcp_rt *rt, const struct tcp_sock *tp) { switch (rt->stage) { - case TCPRT_TYPE_NONE: + case TCPRT_STAGE_NONE: break; case TCPRT_STAGE_REQUEST: -- Gitee