diff options
| author | Wang Long <long.wanglong@huawei.com> | 2015-03-09 07:39:07 +0000 |
|---|---|---|
| committer | Mister Oyster <oysterized@gmail.com> | 2017-05-20 21:09:35 +0200 |
| commit | d83b17b896f333f4a2d50952d10a106db014b95d (patch) | |
| tree | 01dba8b6aca651de252286a73bec2c9ef43a13a0 /fs | |
| parent | 588797623ebf9ec871a64773b906e487f0f1ea27 (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.
Change-Id: I18b89758c2e928b29a9e14edecadc80a3c40d8fb
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>
Diffstat (limited to 'fs')
| -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 0fc67f61b..36fb0d107 100644 --- a/fs/pstore/ram.c +++ b/fs/pstore/ram.c @@ -596,6 +596,9 @@ static int ramoops_probe(struct platform_device *pdev) mem_address = pdata->mem_address; record_size = pdata->record_size; dump_oops = pdata->dump_oops; + ramoops_console_size = pdata->console_size; + ramoops_pmsg_size = pdata->pmsg_size; + ramoops_ftrace_size = pdata->ftrace_size; pr_info("attached 0x%lx@0x%llx, ecc: %d/%d\n", cxt->size, (unsigned long long)cxt->phys_addr, |
