]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
lsfd: (bugfix) fix wrong type usage in anon_bpf_map_fill_column
authorMasatake YAMATO <yamato@redhat.com>
Mon, 14 Oct 2024 08:39:15 +0000 (17:39 +0900)
committerMasatake YAMATO <yamato@redhat.com>
Fri, 25 Oct 2024 20:20:11 +0000 (05:20 +0900)
Where we should use anon_bpf_map_data, anon_bpf_prog_data was used.
Fortunately, this has not been a big trouble because anon_bpf_map_data
and anon_bpf_prog_data had no difference in their member layout

Signed-off-by: Masatake YAMATO <yamato@redhat.com>
lsfd-cmd/unkn.c

index fa8a2bd559fe72ef43401b7f16d37833094d376a..d8502e38203b9586492d0da80e72e28b86e5be52 100644 (file)
@@ -1183,7 +1183,7 @@ static bool anon_bpf_map_fill_column(struct proc *proc  __attribute__((__unused_
                                     size_t column_index __attribute__((__unused__)),
                                     char **str)
 {
-       struct anon_bpf_prog_data *data = (struct anon_bpf_prog_data *)unkn->anon_data;
+       struct anon_bpf_map_data *data = (struct anon_bpf_map_data *)unkn->anon_data;
        const char *t;
 
        switch(column_id) {