diff options
| author | Miaohe Lin <[email protected]> | 2022-08-16 21:05:52 +0800 |
|---|---|---|
| committer | Andrew Morton <[email protected]> | 2022-09-11 20:25:55 -0700 |
| commit | 01088a603660dfa240ba3331f0a49a3e9797cad1 (patch) | |
| tree | af1072cf535f93982b09072459aa852b94aa7615 /tools/perf/scripts/python/bin | |
| parent | 939de63d35dde45dbc10bd21f174f86629fbe78d (diff) | |
mm/hugetlb: fix sysfs group leak in hugetlb_unregister_node()
The sysfs group per_node_hstate_attr_group and hstate_demote_attr_group
when h->demote_order != 0 are created in hugetlb_register_node(). But
these sysfs groups are not removed when unregister the node, thus sysfs
group is leaked. Using sysfs_remove_group() to fix this issue.
Link: https://lkml.kernel.org/r/[email protected]
Signed-off-by: Miaohe Lin <[email protected]>
Reviewed-by: Fengwei Yin <[email protected]>
Cc: Mike Kravetz <[email protected]>
Cc: Muchun Song <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/bin')
0 files changed, 0 insertions, 0 deletions