WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-changelog

[Xen-changelog] [xen-unstable] sched/arinc653: fix another unsigned < 0

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [xen-unstable] sched/arinc653: fix another unsigned < 0 comparison
From: Xen patchbot-unstable <patchbot-unstable@xxxxxxxxxxxxxxxxxxx>
Date: Thu, 23 Dec 2010 05:33:17 -0800
Delivery-date: Thu, 23 Dec 2010 05:33:28 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-changelog-request@lists.xensource.com?subject=help>
List-id: BK change log <xen-changelog.lists.xensource.com>
List-post: <mailto:xen-changelog@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=unsubscribe>
Reply-to: xen-devel@xxxxxxxxxxxxxxxxxxx
Sender: xen-changelog-bounces@xxxxxxxxxxxxxxxxxxx
# 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

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] [xen-unstable] sched/arinc653: fix another unsigned < 0 comparison, Xen patchbot-unstable <=