Skip to content

Commit f0696cb

Browse files
pizhenweiakpm00
authored andcommitted
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/[email protected] Signed-off-by: zhenwei pi <[email protected]> Acked-by: Naoya Horiguchi <[email protected]> Signed-off-by: Andrew Morton <[email protected]>
1 parent 9113eaf commit f0696cb

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

mm/hwpoison-inject.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@ DEFINE_DEBUGFS_ATTRIBUTE(unpoison_fops, NULL, hwpoison_unpoison, "%lli\n");
6565

6666
static void pfn_inject_exit(void)
6767
{
68+
hwpoison_filter_enable = 0;
6869
debugfs_remove_recursive(hwpoison_dir);
6970
}
7071

0 commit comments

Comments
 (0)