Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 272134
b: refs/heads/master
c: 8c5fb8e
h: refs/heads/master
v: v3
  • Loading branch information
Akinobu Mita authored and Linus Torvalds committed Nov 1, 2011
1 parent a0ea1a3 commit e02f9d2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 798248206b59acc6e1238c778281419c041891a7
refs/heads/master: 8c5fb8eadde41f67c61a7ac2d3246dab87bf7020
8 changes: 3 additions & 5 deletions trunk/mm/debug-pagealloc.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#include <linux/kernel.h>
#include <linux/string.h>
#include <linux/mm.h>
#include <linux/page-debug-flags.h>
#include <linux/poison.h>
Expand Down Expand Up @@ -64,11 +65,8 @@ static void check_poison_mem(unsigned char *mem, size_t bytes)
unsigned char *start;
unsigned char *end;

for (start = mem; start < mem + bytes; start++) {
if (*start != PAGE_POISON)
break;
}
if (start == mem + bytes)
start = memchr_inv(mem, PAGE_POISON, bytes);
if (!start)
return;

for (end = mem + bytes - 1; end > start; end--) {
Expand Down

0 comments on commit e02f9d2

Please sign in to comment.