aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--fs/pstore/ram.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/pstore/ram.c b/fs/pstore/ram.c
index 27c059e1760a..1d887efaaf71 100644
--- a/fs/pstore/ram.c
+++ b/fs/pstore/ram.c
@@ -280,7 +280,7 @@ static ssize_t ramoops_pstore_read(u64 *id, enum pstore_type_id *type,
280 1, id, type, PSTORE_TYPE_PMSG, 0); 280 1, id, type, PSTORE_TYPE_PMSG, 0);
281 281
282 /* ftrace is last since it may want to dynamically allocate memory. */ 282 /* ftrace is last since it may want to dynamically allocate memory. */
283 if (!prz_ok(prz)) { 283 if (!prz_ok(prz) && cxt->fprzs) {
284 if (!(cxt->flags & RAMOOPS_FLAG_FTRACE_PER_CPU)) { 284 if (!(cxt->flags & RAMOOPS_FLAG_FTRACE_PER_CPU)) {
285 prz = ramoops_get_next_prz(cxt->fprzs, 285 prz = ramoops_get_next_prz(cxt->fprzs,
286 &cxt->ftrace_read_cnt, 1, id, type, 286 &cxt->ftrace_read_cnt, 1, id, type,