diff options
author | Keir Fraser <keir@xen.org> | 2010-12-09 08:30:30 +0000 |
---|---|---|
committer | Keir Fraser <keir@xen.org> | 2010-12-09 08:30:30 +0000 |
commit | d94fb682991c5ba91ddcd0aa4b4888bc9913adb5 (patch) | |
tree | dd8261e393e9f4cbc861b1b68b9823effbbad8a5 /xen/common/sched_arinc653.c | |
parent | 14b3ef36453ea2652d5316db7a98b2a248c0c660 (diff) | |
download | xen-d94fb682991c5ba91ddcd0aa4b4888bc9913adb5.tar.gz xen-d94fb682991c5ba91ddcd0aa4b4888bc9913adb5.tar.bz2 xen-d94fb682991c5ba91ddcd0aa4b4888bc9913adb5.zip |
sched/arinc653: fix another unsigned < 0 comparison
replacing it with a test of the appopriate unsigned max.
Signed-off-by: Tim Deegan <Tim.Deegan@citrix.com>
Diffstat (limited to 'xen/common/sched_arinc653.c')
-rw-r--r-- | xen/common/sched_arinc653.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/xen/common/sched_arinc653.c b/xen/common/sched_arinc653.c index d563834297..e0cab17fc3 100644 --- a/xen/common/sched_arinc653.c +++ b/xen/common/sched_arinc653.c @@ -241,7 +241,7 @@ arinc653_sched_set( found_dom0 = 1; /* Check for a valid VCPU ID and run time. */ - if ( (schedule->sched_entries[i].vcpu_id < 0) + if ( (schedule->sched_entries[i].vcpu_id >= MAX_VIRT_CPUS) || (schedule->sched_entries[i].runtime <= 0) ) goto fail; |