diff options
Diffstat (limited to 'fs/pstore/ram.c')
-rw-r--r-- | fs/pstore/ram.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/fs/pstore/ram.c b/fs/pstore/ram.c index 44a549beeafa..eb31d39d6c3c 100644 --- a/fs/pstore/ram.c +++ b/fs/pstore/ram.c @@ -444,6 +444,12 @@ static int ramoops_init_prz(struct device *dev, struct ramoops_context *cxt, return 0; } +void notrace ramoops_console_write_buf(const char *buf, size_t size) +{ + struct ramoops_context *cxt = &oops_cxt; + persistent_ram_write(cxt->cprz, buf, size); +} + static int ramoops_probe(struct platform_device *pdev) { struct device *dev = &pdev->dev; @@ -553,6 +559,7 @@ fail_buf: kfree(cxt->pstore.buf); fail_clear: cxt->pstore.bufsize = 0; + cxt->max_dump_cnt = 0; kfree(cxt->mprz); fail_init_mprz: kfree(cxt->fprz); |