aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--fs/pstore/ram.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/pstore/ram.c b/fs/pstore/ram.c
index 32cbd7c8a90c..1376e5a8f0d6 100644
--- a/fs/pstore/ram.c
+++ b/fs/pstore/ram.c
@@ -438,6 +438,7 @@ static int ramoops_probe(struct platform_device *pdev)
438 pr_err("memory size too small, minimum is %zu\n", 438 pr_err("memory size too small, minimum is %zu\n",
439 cxt->console_size + cxt->record_size + 439 cxt->console_size + cxt->record_size +
440 cxt->ftrace_size); 440 cxt->ftrace_size);
441 err = -EINVAL;
441 goto fail_cnt; 442 goto fail_cnt;
442 } 443 }
443 444
@@ -455,6 +456,7 @@ static int ramoops_probe(struct platform_device *pdev)
455 spin_lock_init(&cxt->pstore.buf_lock); 456 spin_lock_init(&cxt->pstore.buf_lock);
456 if (!cxt->pstore.buf) { 457 if (!cxt->pstore.buf) {
457 pr_err("cannot allocate pstore buffer\n"); 458 pr_err("cannot allocate pstore buffer\n");
459 err = -ENOMEM;
458 goto fail_clear; 460 goto fail_clear;
459 } 461 }
460 462