https://github.com/torvalds/linux
Revision 8672aed7bd865774257efd40929702759a869329 authored by Brian Norris on 09 February 2017, 06:44:44 UTC, committed by Kees Cook on 09 February 2017, 19:49:49 UTC
We'll OOPS in ramoops_get_next_prz() if the platform didn't ask for any
ftrace zones (i.e., cxt->fprzs will be NULL). Let's just skip this
entire FTRACE section if there's no 'fprzs'.

Regression seen on a coreboot/depthcharge-based Chromebook.

Fixes: 2fbea82bbb89 ("pstore: Merge per-CPU ftrace records into one")
Cc: Joel Fernandes <joelaf@google.com>
Cc: Kees Cook <keescook@chromium.org>
Signed-off-by: Brian Norris <briannorris@chromium.org>
Signed-off-by: Kees Cook <keescook@chromium.org>
1 parent d966564
History
Tip revision: 8672aed7bd865774257efd40929702759a869329 authored by Brian Norris on 09 February 2017, 06:44:44 UTC
pstore: don't OOPS when there are no ftrace zones
Tip revision: 8672aed

back to top