diff options
author | Vitaly Mayatskikh <v.mayatskih@gmail.com> | 2010-05-11 14:06:51 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2010-05-11 17:33:42 -0700 |
commit | 475f9aa6aa538befcbd0fa95bdebada600f247cd (patch) | |
tree | 204167585e965b67a3b95b972744a96069f0169a /mm/rmap.c | |
parent | d586ebbb8814e039545d38f69029533f3f17748d (diff) | |
download | kernel_samsung_tuna-475f9aa6aa538befcbd0fa95bdebada600f247cd.zip kernel_samsung_tuna-475f9aa6aa538befcbd0fa95bdebada600f247cd.tar.gz kernel_samsung_tuna-475f9aa6aa538befcbd0fa95bdebada600f247cd.tar.bz2 |
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 <v.mayatskih@gmail.com>
Cc: Cong Wang <amwang@redhat.com>
Cc: Neil Horman <nhorman@tuxdriver.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'mm/rmap.c')
0 files changed, 0 insertions, 0 deletions