X-Git-Url: http://drtracing.org/?a=blobdiff_plain;f=mm%2Fhwpoison-inject.c;h=afc2daa91c609dd8aab70f50fb58fd9100ed8326;hb=284d20552461466b04d6bfeafeb1c47a8891b591;hp=3a61efc518d56964460af63ca31ba26bc375ad47;hpb=8ca7de91640a9840a0d29021d17492be7fd8232b;p=deliverable%2Flinux.git diff --git a/mm/hwpoison-inject.c b/mm/hwpoison-inject.c index 3a61efc518d5..afc2daa91c60 100644 --- a/mm/hwpoison-inject.c +++ b/mm/hwpoison-inject.c @@ -88,12 +88,12 @@ static int pfn_inject_init(void) * hardware status change, hence do not require hardware support. * They are mainly for testing hwpoison in software level. */ - dentry = debugfs_create_file("corrupt-pfn", 0600, hwpoison_dir, + dentry = debugfs_create_file("corrupt-pfn", 0200, hwpoison_dir, NULL, &hwpoison_fops); if (!dentry) goto fail; - dentry = debugfs_create_file("unpoison-pfn", 0600, hwpoison_dir, + dentry = debugfs_create_file("unpoison-pfn", 0200, hwpoison_dir, NULL, &unpoison_fops); if (!dentry) goto fail;