summaryrefslogtreecommitdiff
path: root/net/sched
diff options
context:
space:
mode:
authorDan Carpenter <dan.carpenter@oracle.com>2022-05-31 15:10:05 +0300
committerPaolo Abeni <pabeni@redhat.com>2022-06-01 13:32:04 +0200
commit86360030cc5117596626bef1d937277cd2bebe05 (patch)
tree449e82ddadb5decb865966534697a40f3812ea49 /net/sched
parente6652a8ef3e64d953168a95878fe29b934ad78ac (diff)
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@oracle.com> Acked-by: Toshiaki Makita <toshiaki.makita1@gmail.com> Link: https://lore.kernel.org/r/YpYFnbDxFl6tQ3Bn@kili Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Diffstat (limited to 'net/sched')
-rw-r--r--net/sched/act_ct.c2
1 files changed, 1 insertions, 1 deletions
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)