diff options
author | Prasad Sodagudi <psodagud@codeaurora.org> | 2016-02-25 12:57:06 +0530 |
---|---|---|
committer | Prasad Sodagudi <psodagud@codeaurora.org> | 2016-10-28 10:55:48 +0530 |
commit | 3864648a2858e75ed5eddbc299a8601c98b081ea (patch) | |
tree | 5df2a76808884005bfd323d6d985ca8f606670f9 /mm | |
parent | 626caf4e54864d90e8d104277f9a1446e487c7e1 (diff) |
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>
Diffstat (limited to 'mm')
-rw-r--r-- | mm/debug-pagealloc.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/mm/debug-pagealloc.c b/mm/debug-pagealloc.c index e060c7cdf24c..100963091cc6 100644 --- a/mm/debug-pagealloc.c +++ b/mm/debug-pagealloc.c @@ -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(); } |