diff options
author | Stephen Rothwell <sfr@canb.auug.org.au> | 2023-05-15 10:47:09 +1000 |
---|---|---|
committer | Stephen Rothwell <sfr@canb.auug.org.au> | 2023-05-15 10:47:09 +1000 |
commit | 89a7dcee9abd5ad5b371d562c202c5235eea758d (patch) | |
tree | 1d7ec8d85a2c44f9d329375bb6bbd9e30a04e78b /samples | |
parent | 30b2e41b957c254baa551f528d01c4bf6100a36e (diff) | |
parent | 79b3604d6221220770fb52619e1f55ee04b2c1b7 (diff) | |
download | linux-next-89a7dcee9abd5ad5b371d562c202c5235eea758d.tar.gz |
Merge branch 'for-next' of git://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpf-next.git
Diffstat (limited to 'samples')
-rw-r--r-- | samples/bpf/tcp_basertt_kern.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/samples/bpf/tcp_basertt_kern.c b/samples/bpf/tcp_basertt_kern.c index 8dfe09a92fec..822b0742b815 100644 --- a/samples/bpf/tcp_basertt_kern.c +++ b/samples/bpf/tcp_basertt_kern.c @@ -47,7 +47,7 @@ int bpf_basertt(struct bpf_sock_ops *skops) case BPF_SOCK_OPS_BASE_RTT: n = bpf_getsockopt(skops, SOL_TCP, TCP_CONGESTION, cong, sizeof(cong)); - if (!n && !__builtin_memcmp(cong, nv, sizeof(nv)+1)) { + if (!n && !__builtin_memcmp(cong, nv, sizeof(nv))) { /* Set base_rtt to 80us */ rv = 80; } else if (n) { |