mirror of
https://github.com/torvalds/linux.git
synced 2026-10-07 05:31:08 -04:00
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: fcb6aa8653 ("act_ct: Support GRE offload")
Signed-off-by: Dan Carpenter <[email protected]>
Acked-by: Toshiaki Makita <[email protected]>
Link: https://lore.kernel.org/r/YpYFnbDxFl6tQ3Bn@kili
Signed-off-by: Paolo Abeni <[email protected]>
This commit is contained in:
1 parent
e6652a8ef3
commit
86360030cc
1 file changed
+1
-1
+1
-1
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user