[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-changelog] [xen master] x86/p2m.c: fix missed off-by-one in altp2m commit



commit 32524961873fd9dda50a71d46cd2d74ddbd8035a
Author:     Ravi Sahita <ravi.sahita@xxxxxxxxx>
AuthorDate: Wed Jul 29 09:40:06 2015 -0700
Commit:     Ian Campbell <ian.campbell@xxxxxxxxxx>
CommitDate: Thu Jul 30 10:00:28 2015 +0100

    x86/p2m.c: fix missed off-by-one in altp2m commit
    
    Signed-off-by: Ravi Sahita <ravi.sahita@xxxxxxxxx>
    Reviewed-by: Andrew Cooper <andrew.cooper3@xxxxxxxxxx>
---
 xen/arch/x86/mm/p2m.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/xen/arch/x86/mm/p2m.c b/xen/arch/x86/mm/p2m.c
index ff8be31..667b4c2 100644
--- a/xen/arch/x86/mm/p2m.c
+++ b/xen/arch/x86/mm/p2m.c
@@ -2076,7 +2076,7 @@ bool_t p2m_switch_vcpu_altp2m_by_id(struct vcpu *v, 
unsigned int idx)
     struct domain *d = v->domain;
     bool_t rc = 0;
 
-    if ( idx > MAX_ALTP2M )
+    if ( idx >= MAX_ALTP2M )
         return rc;
 
     altp2m_list_lock(d);
--
generated by git-patchbot for /home/xen/git/xen.git#master

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.