Skip to content

Commit 8636003

Browse files
Dan CarpenterPaolo Abeni
authored andcommitted
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: fcb6aa8 ("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>
1 parent e6652a8 commit 8636003

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

net/sched/act_ct.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -548,7 +548,7 @@ tcf_ct_flow_table_fill_tuple_ipv6(struct sk_buff *skb,
548548
break;
549549
#endif
550550
default:
551-
return -1;
551+
return false;
552552
}
553553

554554
if (ip6h->hop_limit <= 1)

0 commit comments

Comments
 (0)