kexec: add further check to crashkernel
authorZhenzhong Duan <zhenzhong.duan@oracle.com>
Wed, 28 Mar 2012 21:42:47 +0000 (14:42 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 29 Mar 2012 00:14:36 +0000 (17:14 -0700)
commiteaa3be6add6f327ab0a633e4fee8e6f2cc8c8a4c
tree033e1ac064eb855369246404dd1603b41eb64d27
parentd034cfab4f7b9e768c5c1caaa56c5bd4805d2b92
kexec: add further check to crashkernel

When using crashkernel=2M-256M, the kernel doesn't give any warning.  This
is misleading sometimes.

Signed-off-by: Zhenzhong Duan <zhenzhong.duan@oracle.com>
Acked-by: "Eric W. Biederman" <ebiederm@xmission.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
kernel/kexec.c