aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/util/scripting-engines/trace-event-python.c
diff options
context:
space:
mode:
authorPavan Naregundi <[email protected]>2010-06-29 15:05:28 -0700
committerLinus Torvalds <[email protected]>2010-06-29 15:29:31 -0700
commite05bd3367bd3d88715b53766f95bb3a8ec7ab59e (patch)
treedb9f13cd687c39bf873ff5dbed28bbd142fc6940 /tools/perf/util/scripting-engines/trace-event-python.c
parent482ce512c543f3b30ab881702fa997e71252e604 (diff)
kexec: fix Oops in crash_shrink_memory()
When crashkernel is not enabled, "echo 0 > /sys/kernel/kexec_crash_size" OOPSes the kernel in crash_shrink_memory. This happens when crash_shrink_memory tries to release the 'crashk_res' resource which are not reserved. Also value of "/sys/kernel/kexec_crash_size" shows as 1, which should be 0. This patch fixes the OOPS in crash_shrink_memory and shows "/sys/kernel/kexec_crash_size" as 0 when crash kernel memory is not reserved. Signed-off-by: Pavan Naregundi <[email protected]> Reviewed-by: WANG Cong <[email protected]> Cc: Simon Horman <[email protected]> Cc: Vivek Goyal <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'tools/perf/util/scripting-engines/trace-event-python.c')
0 files changed, 0 insertions, 0 deletions