mirror of
https://github.com/torvalds/linux.git
synced 2025-11-02 17:49:03 +02:00
perf maps: Add missing map__set_kmap_maps() when replacing a kernel map
Since in this case __maps__insert_sorted() is not called and thus doesn't have the opportunity to do the needed map__set_kmap_maps() calls on the new map. Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com> Acked-by: Namhyung Kim <namhyung@kernel.org> Reviewed-by: Ian Rogers <irogers@google.com> Link: https://lore.kernel.org/lkml/Z7-May5w9VQd5QD0@x1 Link: https://lore.kernel.org/r/20250228211734.33781-6-acme@kernel.org Signed-off-by: Namhyung Kim <namhyung@kernel.org>
This commit is contained in:
parent
0d11fab327
commit
e0e4e0b8b7
1 changed files with 2 additions and 0 deletions
|
|
@ -948,6 +948,8 @@ static int __maps__fixup_overlap_and_insert(struct maps *maps, struct map *new)
|
||||||
maps_by_name[ni] = map__get(new);
|
maps_by_name[ni] = map__get(new);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
map__set_kmap_maps(new, maps);
|
||||||
|
|
||||||
check_invariants(maps);
|
check_invariants(maps);
|
||||||
return err;
|
return err;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue