projects
/
xen.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
14b3ef3
)
sched/arinc653: fix another unsigned < 0 comparison
author
Keir Fraser
<keir@xen.org>
Thu, 9 Dec 2010 08:30:30 +0000
(08:30 +0000)
committer
Keir Fraser
<keir@xen.org>
Thu, 9 Dec 2010 08:30:30 +0000
(08:30 +0000)
replacing it with a test of the appopriate unsigned max.
Signed-off-by: Tim Deegan <Tim.Deegan@citrix.com>
xen/common/sched_arinc653.c
patch
|
blob
|
history
diff --git
a/xen/common/sched_arinc653.c
b/xen/common/sched_arinc653.c
index d5638342973194befce658adc7eeb44a92eb4898..e0cab17fc3cd659891fbdd154ada3430970e4b3f 100644
(file)
--- 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;