mirror of
https://github.com/tbsdtv/linux_media.git
synced 2025-07-23 20:51:03 +02:00
mm/hwpoison: disable hwpoison filter during removing
hwpoison filter is enabled by hwpoison-inject module, after removing this module, hwpoison filter still works. What is worse, user can not find the debugfs entries to know this. Disable the hwpoison filter during removing hwpoison-inject module. Link: https://lkml.kernel.org/r/20220509105641.491313-5-pizhenwei@bytedance.com Signed-off-by: zhenwei pi <pizhenwei@bytedance.com> Acked-by: Naoya Horiguchi <naoya.horiguchi@nec.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
This commit is contained in:
committed by
Andrew Morton
parent
9113eaf331
commit
f0696cb406
@@ -65,6 +65,7 @@ DEFINE_DEBUGFS_ATTRIBUTE(unpoison_fops, NULL, hwpoison_unpoison, "%lli\n");
|
|||||||
|
|
||||||
static void pfn_inject_exit(void)
|
static void pfn_inject_exit(void)
|
||||||
{
|
{
|
||||||
|
hwpoison_filter_enable = 0;
|
||||||
debugfs_remove_recursive(hwpoison_dir);
|
debugfs_remove_recursive(hwpoison_dir);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user