ia64/linux-2.6.18-xen.hg

changeset 448:439fda3ac269

kexec: Use error path if crash region range can't be accessed

Although the error handling path in xen_machine_kexec_setup_resource()
is somewhat minmal, it ought to be used if HYPERVISOR_kexec_op() fails
whengetting the crash kernel region, as this indicates that an error
occured, not that the crash kernel region is empty.

Signed-off-by: Simon Horman <horms@verge.net.au>
author Keir Fraser <keir.fraser@citrix.com>
date Thu Feb 28 10:52:47 2008 +0000 (2008-02-28)
parents c48f54365060
children 621ce063ad83
files drivers/xen/core/machine_kexec.c
line diff
     1.1 --- a/drivers/xen/core/machine_kexec.c	Wed Feb 27 13:14:18 2008 +0000
     1.2 +++ b/drivers/xen/core/machine_kexec.c	Thu Feb 28 10:52:47 2008 +0000
     1.3 @@ -85,7 +85,7 @@ void __init xen_machine_kexec_setup_reso
     1.4  	range.range = KEXEC_RANGE_MA_CRASH;
     1.5  
     1.6  	if (HYPERVISOR_kexec_op(KEXEC_CMD_kexec_get_range, &range))
     1.7 -		return;
     1.8 +		goto err;
     1.9  
    1.10  	if (range.size) {
    1.11  		crashk_res.start = range.start;