Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 177641
b: refs/heads/master
c: 0d57eb8
h: refs/heads/master
i:
  177639: f4b9007
v: v3
  • Loading branch information
Andi Kleen authored and Andi Kleen committed Dec 16, 2009
1 parent 437f9b5 commit dee6f98
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: afcf938ee0aac4ef95b1a23bac704c6fbeb26de6
refs/heads/master: 0d57eb8dfcb92e3dd928d792f4ed2b2fec680bb7
3 changes: 3 additions & 0 deletions trunk/mm/hwpoison-inject.c
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ static int hwpoison_inject(void *data, u64 val)
if (!capable(CAP_SYS_ADMIN))
return -EPERM;

if (!hwpoison_filter_enable)
goto inject;
if (!pfn_valid(pfn))
return -ENXIO;

Expand Down Expand Up @@ -48,6 +50,7 @@ static int hwpoison_inject(void *data, u64 val)
if (err)
return 0;

inject:
printk(KERN_INFO "Injecting memory failure at pfn %lx\n", pfn);
return __memory_failure(pfn, 18, MF_COUNT_INCREASED);
}
Expand Down

0 comments on commit dee6f98

Please sign in to comment.