summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tools/sched_ext/scx_sdt.bpf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/sched_ext/scx_sdt.bpf.c b/tools/sched_ext/scx_sdt.bpf.c
index d965f7d209de..31b09958e8d5 100644
--- a/tools/sched_ext/scx_sdt.bpf.c
+++ b/tools/sched_ext/scx_sdt.bpf.c
@@ -312,7 +312,7 @@ int scx_alloc_free_idx(struct scx_allocator *alloc, __u64 idx)
pos = idx & mask;
data = chunk->data[pos];
if (likely(data)) {
- data[pos] = (struct sdt_data) {
+ *data = (struct sdt_data) {
.tid.genn = data->tid.genn + 1,
};