diff mbox series

[net] net/sched: act_api: fix error code in tcf_ct_flow_table_fill_tuple_ipv6()

Message ID YpYFnbDxFl6tQ3Bn@kili (mailing list archive)
State Accepted
Commit 86360030cc5117596626bef1d937277cd2bebe05
Delegated to: Netdev Maintainers
Headers show
Series [net] net/sched: act_api: fix error code in tcf_ct_flow_table_fill_tuple_ipv6() | expand

Checks

Context Check Description
netdev/tree_selection success Clearly marked for net
netdev/fixes_present success Fixes tag present in non-next series
netdev/subject_prefix success Link
netdev/cover_letter success Single patches do not need cover letters
netdev/patch_count success Link
netdev/header_inline success No static functions without inline keyword in header files
netdev/build_32bit success Errors and warnings before: 0 this patch: 0
netdev/cc_maintainers success CCed 11 of 11 maintainers
netdev/build_clang success Errors and warnings before: 0 this patch: 0
netdev/module_param success Was 0 now: 0
netdev/verify_signedoff success Signed-off-by tag matches author and committer
netdev/check_selftest success No net selftest shell script
netdev/verify_fixes success Fixes tag looks correct
netdev/build_allmodconfig_warn success Errors and warnings before: 0 this patch: 0
netdev/checkpatch success total: 0 errors, 0 warnings, 0 checks, 8 lines checked
netdev/kdoc success Errors and warnings before: 0 this patch: 0
netdev/source_inline success Was 0 now: 0

Commit Message

Dan Carpenter May 31, 2022, 12:10 p.m. UTC
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>
---
 net/sched/act_ct.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Toshiaki Makita June 1, 2022, 6:03 a.m. UTC | #1
On 2022/05/31 21:10, Dan Carpenter wrote:
> 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>

Thank you!

Acked-by: Toshiaki Makita <toshiaki.makita1@gmail.com>
patchwork-bot+netdevbpf@kernel.org June 1, 2022, 1:20 p.m. UTC | #2
Hello:

This patch was applied to netdev/net.git (master)
by Paolo Abeni <pabeni@redhat.com>:

On Tue, 31 May 2022 15:10:05 +0300 you wrote:
> 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>
> 
> [...]

Here is the summary with links:
  - [net] net/sched: act_api: fix error code in tcf_ct_flow_table_fill_tuple_ipv6()
    https://git.kernel.org/netdev/net/c/86360030cc51

You are awesome, thank you!
diff mbox series

Patch

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)