]> Git Repo - linux.git/commitdiff
ramoops: make it possible to change mem_type param.
authorWang Long <[email protected]>
Thu, 21 May 2015 16:52:29 +0000 (09:52 -0700)
committerTony Luck <[email protected]>
Thu, 21 May 2015 16:52:29 +0000 (09:52 -0700)
If we set ramoops.mem_type=1 in command line, the current
code can not change mem_type to 1, because it is assigned
to 0 in function ramoops_register_dummy.

This patch make it possible to change mem_type parameter
in command line.

Signed-off-by: Wang Long <[email protected]>
Acked-by: Tony Lindgren <[email protected]>
Signed-off-by: Tony Luck <[email protected]>
fs/pstore/ram.c

index d84ce222c516aecab3c6b8724a14bcd5d18d8f22..6c26c4daaec99765c6fe87cae79a75fa7dc963a6 100644 (file)
@@ -622,7 +622,7 @@ static void ramoops_register_dummy(void)
 
        dummy_data->mem_size = mem_size;
        dummy_data->mem_address = mem_address;
-       dummy_data->mem_type = 0;
+       dummy_data->mem_type = mem_type;
        dummy_data->record_size = record_size;
        dummy_data->console_size = ramoops_console_size;
        dummy_data->ftrace_size = ramoops_ftrace_size;
This page took 0.05564 seconds and 4 git commands to generate.