diff --git a/[refs] b/[refs] index 120a6d732104..7008daa34df0 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 798248206b59acc6e1238c778281419c041891a7 +refs/heads/master: 8c5fb8eadde41f67c61a7ac2d3246dab87bf7020 diff --git a/trunk/mm/debug-pagealloc.c b/trunk/mm/debug-pagealloc.c index a4b6d707a31f..2618933efdb3 100644 --- a/trunk/mm/debug-pagealloc.c +++ b/trunk/mm/debug-pagealloc.c @@ -1,4 +1,5 @@ #include +#include #include #include #include @@ -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--) {