From: Keir Fraser Date: Wed, 27 Jul 2011 22:12:31 +0000 (+0100) Subject: x86: Replace missing return stmt accidentally removed by 21513:649372e3d46a X-Git-Tag: 4.0.3-rc1~2 X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=f9bb93fc8758a555df7bf5933729a1e89fcef371;p=xen.git x86: Replace missing return stmt accidentally removed by 21513:649372e3d46a Signed-off-by: Keir Fraser --- diff --git a/xen/arch/x86/smpboot.c b/xen/arch/x86/smpboot.c index 6ad01f822b..13cd65e841 100644 --- a/xen/arch/x86/smpboot.c +++ b/xen/arch/x86/smpboot.c @@ -1480,6 +1480,7 @@ int cpu_add(uint32_t apic_id, uint32_t acpi_id, uint32_t pxm) if ( (acpi_id >= MAX_MADT_ENTRIES) || (apic_id >= MAX_APICS) || (pxm >= 256) ) + return -EINVAL; /* Detect if the cpu has been added before */ if ( x86_acpiid_to_apicid[acpi_id] != 0xff)