summaryrefslogtreecommitdiff
path: root/mm
diff options
context:
space:
mode:
authorPrasad Sodagudi <psodagud@codeaurora.org>2016-02-25 12:57:06 +0530
committerDavid Keitel <dkeitel@codeaurora.org>2016-03-25 16:03:35 -0700
commit4eace7df06d891a5ee709b51d75428e7c10a178c (patch)
tree24493e5e409a07d2cfbc399854431600820fb0e2 /mm
parent8e969233a2c79a00ec57310a88ea70d7ef461b68 (diff)
debug-pagealloc: Panic on pagealloc corruption
Currently, we just print the pagealloc corruption warnings and proceed. Sometimes, we are getting multiple errors printed down the line. It will be good to get the device state as early as possible when we get the first pagealloc error. Change-Id: I79155ac8a039b30a3a98d5dd1384d3923082712f Signed-off-by: Subbaraman Narayanamurthy <subbaram@codeaurora.org> Signed-off-by: Prasad Sodagudi <psodagud@codeaurora.org>
Diffstat (limited to 'mm')
-rw-r--r--mm/debug-pagealloc.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/mm/debug-pagealloc.c b/mm/debug-pagealloc.c
index feae18981174..de50b1b9a791 100644
--- a/mm/debug-pagealloc.c
+++ b/mm/debug-pagealloc.c
@@ -110,6 +110,7 @@ static void check_poison_mem(unsigned char *mem, size_t bytes)
print_hex_dump(KERN_ERR, "", DUMP_PREFIX_ADDRESS, 16, 1, start,
end - start + 1, 1);
+ BUG_ON(PANIC_CORRUPTION);
dump_stack();
}