linux/fs/pstore
Brian Norris 8672aed7bd pstore: don't OOPS when there are no ftrace zones
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: 2fbea82bbb ("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>
2017-02-09 11:49:49 -08:00
..
ftrace.c pstore: Use global ftrace filters for function trace filtering 2016-11-15 16:34:30 -08:00
inode.c pstore: Protect unlink with read_mutex 2016-11-15 16:34:31 -08:00
internal.h
Kconfig
Makefile
platform.c pstore: Convert console write to use ->write_buf 2016-11-15 16:34:32 -08:00
pmsg.c
ram_core.c
ram.c pstore: don't OOPS when there are no ftrace zones 2017-02-09 11:49:49 -08:00