pstore: Fix the ramoops module parameters update
authorWang Long <long.wanglong@huawei.com>
Mon, 9 Mar 2015 07:39:07 +0000 (07:39 +0000)
committerTony Luck <tony.luck@intel.com>
Mon, 16 Mar 2015 18:14:10 +0000 (11:14 -0700)
commit62f269ef819156889b121ae27998e928b784c219
treebf4777197e5660ee03a9096b88d2019d643a90bd
parent06e5801b8cb3fc057d88cb4dc03c0b64b2744cda
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>
fs/pstore/ram.c