Commit 84a6ef00 authored by Youling Tang's avatar Youling Tang Committed by Simon Horman
Browse files

mips: Fix the increased mem parameter size



The added "mem=size@start" parameter actually corresponds to
"crashkernel=YM@XM", but 1 byte is missing when calculating
the size, so 1 byte should be added.

For example, when using crashkernel=108M@64M (110592K@65536K):
Without this patch:
	the mem parameter added is: mem=110591K@65536K

With this patch:
	the mem parameter added is: mem=110592K@65536K

Fixes: 0eac6405 ("kexec: mips: Fix mem parameters")

Signed-off-by: default avatarYouling Tang <tangyouling@loongson.cn>
Signed-off-by: default avatarSimon Horman <horms@verge.net.au>
parent d73822b8
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment