2
0
mirror of https://github.com/edk2-porting/linux-next.git synced 2024-12-17 17:53:56 +08:00
linux-next/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 pstore: Add ftrace timestamp counter 2016-11-15 16:34:27 -08:00
Kconfig docs: fix locations of several documents that got moved 2016-10-24 08:12:35 -02:00
Makefile pstore: add pstore unregister 2015-10-22 08:59:18 -07:00
platform.c pstore: Convert console write to use ->write_buf 2016-11-15 16:34:32 -08:00
pmsg.c pstore/pmsg: drop bounce buffer 2016-09-08 15:01:10 -07:00
ram_core.c pstore: Allow prz to control need for locking 2016-11-15 16:34:25 -08:00
ram.c pstore: don't OOPS when there are no ftrace zones 2017-02-09 11:49:49 -08:00