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] xsm: Corrected check in io_has_perm()

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [xen-unstable] xsm: Corrected check in io_has_perm()
From: Xen patchbot-unstable <patchbot-unstable@xxxxxxxxxxxxxxxxxxx>
Date: Fri, 23 Oct 2009 02:40:17 -0700
Delivery-date: Fri, 23 Oct 2009 02:40:59 -0700
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.fraser@xxxxxxxxxx>
# Date 1256289172 -3600
# Node ID f760735bbcdf44b0b189ec79c6015f5267ae23dc
# Parent  51b031b0737e4371ec2a3e1f37835e7c017d6537
xsm: Corrected check in io_has_perm()

Fix the check in io_has_perm() to correctly check the start and end
of I/O Memory.

Signed-off-by : George Coker <gscoker@xxxxxxxxxxxxxx>
Signed-off-by : Paul Nuzzi <pjnuzzi@xxxxxxxxxxxxxx>
---
 xen/xsm/flask/hooks.c |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)

diff -r 51b031b0737e -r f760735bbcdf xen/xsm/flask/hooks.c
--- a/xen/xsm/flask/hooks.c     Fri Oct 23 10:11:52 2009 +0100
+++ b/xen/xsm/flask/hooks.c     Fri Oct 23 10:12:52 2009 +0100
@@ -1176,7 +1176,7 @@ static int io_has_perm(struct domain *d,
             return rc;
 
         if ( s != e )
-            rc = iomem_has_perm(d, s, access);
+            rc = iomem_has_perm(d, e, access);
     }
     else if ( strcmp(name, "Interrupts") == 0 )
     {

_______________________________________________
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] xsm: Corrected check in io_has_perm(), Xen patchbot-unstable <=