From: Vitaly Mayatskikh Date: Tue, 11 May 2010 21:06:51 +0000 (-0700) Subject: kexec: fix OOPS in crash_kernel_shrink X-Git-Tag: v2.6.34~42 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=475f9aa6aa538befcbd0fa95bdebada600f247cd;p=pandora-kernel.git kexec: fix OOPS in crash_kernel_shrink Two "echo 0 > /sys/kernel/kexec_crash_size" OOPSes kernel. Also content of this file is invalid after first shrink to zero: it shows 1 instead of 0. This scenario is unlikely to happen often (root privs, valid crashkernel= in cmdline, dump-capture kernel not loaded), I hit it only by chance. This patch fixes it. Signed-off-by: Vitaly Mayatskikh Cc: Cong Wang Cc: Neil Horman Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed