clocksource/drivers/starfive: Fix shutdown ktime_get call problem
[platform/kernel/linux-starfive.git] / samples / bpf / tcp_basertt_kern.c
index 8dfe09a..822b074 100644 (file)
@@ -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) {