Message ID | 20240111171207.54d7cdbf@gandalf.local.home (mailing list archive) |
---|---|
State | Accepted |
Commit | 1571b67c3ca2e1b6ad5f38559a4c224f710ca4fe |
Headers | show |
Series | libtracecmd: Fix free_zpage() offset | expand |
diff --git a/lib/trace-cmd/trace-input.c b/lib/trace-cmd/trace-input.c index 88bef83f4fe0..e0194f89e5db 100644 --- a/lib/trace-cmd/trace-input.c +++ b/lib/trace-cmd/trace-input.c @@ -1384,6 +1384,8 @@ static void free_zpage(struct cpu_data *cpu_data, off_t offset) struct trace_rbtree_node *node; struct zchunk_cache *cache; + offset -= cpu_data->file_offset; + node = trace_rbtree_find(&cpu_data->compress.cache, (void *)&offset); if (!node)