[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <YpYFnbDxFl6tQ3Bn@kili>
Date: Tue, 31 May 2022 15:10:05 +0300
From: Dan Carpenter <dan.carpenter@...cle.com>
To: Jamal Hadi Salim <jhs@...atatu.com>,
Toshiaki Makita <toshiaki.makita1@...il.com>
Cc: Cong Wang <xiyou.wangcong@...il.com>,
Jiri Pirko <jiri@...nulli.us>,
"David S. Miller" <davem@...emloft.net>,
Eric Dumazet <edumazet@...gle.com>,
Jakub Kicinski <kuba@...nel.org>,
Paolo Abeni <pabeni@...hat.com>,
Paul Blakey <paulb@...dia.com>,
Pablo Neira Ayuso <pablo@...filter.org>,
netdev@...r.kernel.org, kernel-janitors@...r.kernel.org
Subject: [PATCH net] net/sched: act_api: fix error code in
tcf_ct_flow_table_fill_tuple_ipv6()
The tcf_ct_flow_table_fill_tuple_ipv6() function is supposed to return
false on failure. It should not return negatives because that means
succes/true.
Fixes: fcb6aa86532c ("act_ct: Support GRE offload")
Signed-off-by: Dan Carpenter <dan.carpenter@...cle.com>
---
net/sched/act_ct.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/net/sched/act_ct.c b/net/sched/act_ct.c
index 8af9d6e5ba61..e013253b10d1 100644
--- a/net/sched/act_ct.c
+++ b/net/sched/act_ct.c
@@ -548,7 +548,7 @@ tcf_ct_flow_table_fill_tuple_ipv6(struct sk_buff *skb,
break;
#endif
default:
- return -1;
+ return false;
}
if (ip6h->hop_limit <= 1)
--
2.35.1
Powered by blists - more mailing lists