diff options
Diffstat (limited to 'drivers/mtd/mtdoops.c')
-rw-r--r-- | drivers/mtd/mtdoops.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/mtd/mtdoops.c b/drivers/mtd/mtdoops.c index 1ee72f3f0512..c948150079be 100644 --- a/drivers/mtd/mtdoops.c +++ b/drivers/mtd/mtdoops.c | |||
@@ -307,6 +307,11 @@ static void mtdoops_do_dump(struct kmsg_dumper *dumper, | |||
307 | unsigned long l1_cpy, l2_cpy; | 307 | unsigned long l1_cpy, l2_cpy; |
308 | char *dst; | 308 | char *dst; |
309 | 309 | ||
310 | if (reason != KMSG_DUMP_OOPS && | ||
311 | reason != KMSG_DUMP_PANIC && | ||
312 | reason != KMSG_DUMP_KEXEC) | ||
313 | return; | ||
314 | |||
310 | /* Only dump oopses if dump_oops is set */ | 315 | /* Only dump oopses if dump_oops is set */ |
311 | if (reason == KMSG_DUMP_OOPS && !dump_oops) | 316 | if (reason == KMSG_DUMP_OOPS && !dump_oops) |
312 | return; | 317 | return; |