summaryrefslogtreecommitdiff
path: root/kexec/arch/cris
diff options
context:
space:
mode:
authorDave Young <dyoung@redhat.com>2015-09-25 10:37:51 +0800
committerSimon Horman <horms@verge.net.au>2015-09-25 14:38:29 +0900
commit6fd80e245e3877a8213ca788caea58d08e40264e (patch)
tree4d74cfd1640075aaaec2da5ce630145b39b14670 /kexec/arch/cris
parent7ab842d8a004f6cd75a9d7b3528e4a70819ce4ef (diff)
fix kexec load hang in case crash notes addr read failure
While readng crash note, count_cpu variable will be never decreased in case any failure to read the sysfs file. The issue was found during I test CONFIG_KEXEC_FILE only kernel option. crash_notes are exported to sysfs only for CONFIG_KEXEC. In latest kernel we can configure kernel with CONFIG_KEXEC_FILE only in Kconfig. In this case, if you run a kernel with kexec_file only but do not specify "-s" in kexec-tools arguments, then kexec-tools will hang there. Though "-s" is mandatory for kexec_file_load, kexec should still fail out instead of hanging. Fixing the problem by always decreasing count_cpu in the for loop. Signed-off-by: Dave Young <dyoung@redhat.com> Signed-off-by: Simon Horman <horms@verge.net.au>
Diffstat (limited to 'kexec/arch/cris')
0 files changed, 0 insertions, 0 deletions