diff options
author | Keir Fraser <keir@xen.org> | 2010-10-29 18:05:50 +0100 |
---|---|---|
committer | Keir Fraser <keir@xen.org> | 2010-10-29 18:05:50 +0100 |
commit | 5100a5ede1a200a2831f0b357fb474b853f8c83f (patch) | |
tree | 179b84e20f46a09cf19007e46e9cd850e5720618 /xen/arch/x86/platform_hypercall.c | |
parent | 9bbfbb147798c91c4f4c6f0b947ca62a7ae8b89a (diff) | |
download | xen-5100a5ede1a200a2831f0b357fb474b853f8c83f.tar.gz xen-5100a5ede1a200a2831f0b357fb474b853f8c83f.tar.bz2 xen-5100a5ede1a200a2831f0b357fb474b853f8c83f.zip |
Xen: fix various checks of unsigned integers < 0
Some of these could be benignly discarded by the compiler but some are
actual bugs.
Signed-off-by: Tim Deegan <Tim.Deegan@citrix.com>
Diffstat (limited to 'xen/arch/x86/platform_hypercall.c')
-rw-r--r-- | xen/arch/x86/platform_hypercall.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/xen/arch/x86/platform_hypercall.c b/xen/arch/x86/platform_hypercall.c index 5be2970d36..4dd6a6f959 100644 --- a/xen/arch/x86/platform_hypercall.c +++ b/xen/arch/x86/platform_hypercall.c @@ -418,7 +418,6 @@ ret_t do_platform_op(XEN_GUEST_HANDLE(xen_platform_op_t) u_xenpf_op) } if ( (g_info->xen_cpuid >= NR_CPUS) || - (g_info->xen_cpuid < 0) || !cpu_present(g_info->xen_cpuid) ) { g_info->flags |= XEN_PCPU_FLAGS_INVALID; |