debug-pagealloc: Panic on pagealloc corruption

Instead of just printing warning on pagealloc corruption,
collect the device state for first pagealloc error.

CRs-Fixed: 1035111
Change-Id: I19fbc8c608acc623a68f9a686391a7ecd8437a4a
Signed-off-by: Prasad Sodagudi <psodagud@codeaurora.org>
This commit is contained in:
Prasad Sodagudi 2016-02-25 12:57:06 +05:30
parent 626caf4e54
commit 3864648a28

View file

@ -113,6 +113,7 @@ static void check_poison_mem(struct page *page,
print_hex_dump(KERN_ERR, "", DUMP_PREFIX_ADDRESS, 16, 1, start,
end - start + 1, 1);
BUG_ON(PANIC_CORRUPTION);
dump_stack();
}