mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 18:50:05 +01:00
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>
This commit is contained in:
1 parent
14b3ef3645
commit
d94fb68299
1 file changed
+1
-1
@@ -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;
|
||||
|
||||
|
||||