]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
net/sched: act_api: fix error code in tcf_ct_flow_table_fill_tuple_ipv6()
authorDan Carpenter <dan.carpenter@oracle.com>
Tue, 31 May 2022 12:10:05 +0000 (15:10 +0300)
committerPaolo Abeni <pabeni@redhat.com>
Wed, 1 Jun 2022 11:32:04 +0000 (13:32 +0200)
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>
net/sched/act_ct.c

index 8af9d6e5ba61d552ca6c02588ec08a99733a4c76..e013253b10d189345a43a4f33436bfcdd0eaafa3 100644 (file)
@@ -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)