diff options
author | Wang Long <long.wanglong@huawei.com> | 2015-03-09 03:39:07 -0400 |
---|---|---|
committer | Tony Luck <tony.luck@intel.com> | 2015-03-16 14:14:10 -0400 |
commit | 62f269ef819156889b121ae27998e928b784c219 (patch) | |
tree | bf4777197e5660ee03a9096b88d2019d643a90bd | |
parent | 06e5801b8cb3fc057d88cb4dc03c0b64b2744cda (diff) |
pstore: Fix the ramoops module parameters update
In the function ramoops_probe, the console_size, pmsg_size,
ftrace_size may be update because the value is not the power
of two. We should update the module parameter variables
as well so they are visible through /sys/module/ramoops/parameters
correctly.
Signed-off-by: Wang Long <long.wanglong@huawei.com>
Acked-by: Mark Salyzyn <salyzyn@android.com>
Acked-by: Kees Cook <keescook@chromium.org>
Signed-off-by: Tony Luck <tony.luck@intel.com>
-rw-r--r-- | fs/pstore/ram.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/fs/pstore/ram.c b/fs/pstore/ram.c index 39d1373128e9..44a549beeafa 100644 --- a/fs/pstore/ram.c +++ b/fs/pstore/ram.c | |||
@@ -539,6 +539,9 @@ static int ramoops_probe(struct platform_device *pdev) | |||
539 | mem_address = pdata->mem_address; | 539 | mem_address = pdata->mem_address; |
540 | record_size = pdata->record_size; | 540 | record_size = pdata->record_size; |
541 | dump_oops = pdata->dump_oops; | 541 | dump_oops = pdata->dump_oops; |
542 | ramoops_console_size = pdata->console_size; | ||
543 | ramoops_pmsg_size = pdata->pmsg_size; | ||
544 | ramoops_ftrace_size = pdata->ftrace_size; | ||
542 | 545 | ||
543 | pr_info("attached 0x%lx@0x%llx, ecc: %d/%d\n", | 546 | pr_info("attached 0x%lx@0x%llx, ecc: %d/%d\n", |
544 | cxt->size, (unsigned long long)cxt->phys_addr, | 547 | cxt->size, (unsigned long long)cxt->phys_addr, |