[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] [xen-unstable] sched/arinc653: fix another unsigned < 0 comparison
# HG changeset patch # User Keir Fraser <keir@xxxxxxx> # Date 1291883430 0 # Node ID 45b705c5fe490fc1e51ca1792993997841304f27 # Parent 89116f28083f7d118a259c5bc684d1c4296d9cb3 sched/arinc653: fix another unsigned < 0 comparison replacing it with a test of the appopriate unsigned max. Signed-off-by: Tim Deegan <Tim.Deegan@xxxxxxxxxx> --- xen/common/sched_arinc653.c | 2 +- 1 files changed, 1 insertion(+), 1 deletion(-) diff -r 89116f28083f -r 45b705c5fe49 xen/common/sched_arinc653.c --- a/xen/common/sched_arinc653.c Wed Dec 08 10:46:31 2010 +0000 +++ b/xen/common/sched_arinc653.c Thu Dec 09 08:30:30 2010 +0000 @@ -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; _______________________________________________ Xen-changelog mailing list Xen-changelog@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-changelog
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |