]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
kexec: fix omitting offset in extended crashkernel syntax
authorHidetoshi Seto <seto.hidetoshi@jp.fujitsu.com>
Wed, 29 Jul 2009 22:02:08 +0000 (15:02 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 30 Jul 2009 02:10:34 +0000 (19:10 -0700)
commit11c7da4b0ca76a57f51c996c883c480e203cf5a9
tree25c816507896a6ec7b2a84c72e181080b6cc744d
parent933b787b57ca8bdc0fc8fb2cbf67b5e6d21beb84
kexec: fix omitting offset in extended crashkernel syntax

Setting
 "crashkernel=512M-2G:64M,2G-:128M"
does not work but it turns to work if it has a trailing-whitespace,
like
 "crashkernel=512M-2G:64M,2G-:128M ".

It was because of a bug in the parser, running over the cmdline.

This patch adds a check of the termination.

Reported-by: Jin Dongming <jin.dongming@np.css.fujitsu.com>
Signed-off-by: Hidetoshi Seto <seto.hidetoshi@jp.fujitsu.com>
Tested-by: Jin Dongming <jin.dongming@np.css.fujitsu.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
kernel/kexec.c