diff options
author | Miaohe Lin <linmiaohe@huawei.com> | 2022-04-01 10:09:05 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2022-04-27 10:51:57 +0300 |
commit | a72b6dff4089e6c3455e73ea97b08623b4fed699 (patch) | |
tree | 7badc23cf0d6921c581cd33be2fbe2758d5fd502 /include/linux/device.h | |
parent | 84e7c6786aad1dffa04f5729270f8fcd7281fe4b (diff) | |
download | linux-a72b6dff4089e6c3455e73ea97b08623b4fed699.tar.xz |
drivers/base/node.c: fix compaction sysfs file leak
Compaction sysfs file is created via compaction_register_node in
register_node. But we forgot to remove it in unregister_node. Thus
compaction sysfs file is leaked. Using compaction_unregister_node
to fix this issue.
Fixes: ed4a6d7f0676 ("mm: compaction: add /sys trigger for per-node memory compaction")
Signed-off-by: Miaohe Lin <linmiaohe@huawei.com>
Link: https://lore.kernel.org/r/20220401070905.43679-1-linmiaohe@huawei.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include/linux/device.h')
0 files changed, 0 insertions, 0 deletions