summaryrefslogtreecommitdiff
path: root/mm/zsmalloc.c
diff options
context:
space:
mode:
authorMiaohe Lin <linmiaohe@huawei.com>2022-08-16 21:05:52 +0800
committerAndrew Morton <akpm@linux-foundation.org>2022-09-11 20:25:55 -0700
commit01088a603660dfa240ba3331f0a49a3e9797cad1 (patch)
treeaf1072cf535f93982b09072459aa852b94aa7615 /mm/zsmalloc.c
parent939de63d35dde45dbc10bd21f174f86629fbe78d (diff)
downloadlinux-01088a603660dfa240ba3331f0a49a3e9797cad1.tar.gz
linux-01088a603660dfa240ba3331f0a49a3e9797cad1.tar.bz2
linux-01088a603660dfa240ba3331f0a49a3e9797cad1.zip
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/20220816130553.31406-6-linmiaohe@huawei.com Signed-off-by: Miaohe Lin <linmiaohe@huawei.com> Reviewed-by: Fengwei Yin <fengwei.yin@intel.com> Cc: Mike Kravetz <mike.kravetz@oracle.com> Cc: Muchun Song <songmuchun@bytedance.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'mm/zsmalloc.c')
0 files changed, 0 insertions, 0 deletions