Skip to content

Commit

Permalink
ramoops: make it possible to change mem_type param.
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
datawolf authored and aegl committed May 21, 2015
1 parent e036bd3 commit 0785505
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fs/pstore/ram.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 0785505

Please sign in to comment.