All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH for 4.6] x86/p2m.c: fix missed off-by-one in altp2m commit
@ 2015-07-29 16:40 Ravi Sahita
  2015-07-29 16:46 ` Andrew Cooper
  0 siblings, 1 reply; 3+ messages in thread
From: Ravi Sahita @ 2015-07-29 16:40 UTC (permalink / raw)
  To: xen-devel
  Cc: Ravi Sahita, wei.liu2, george.dunlap, andrew.cooper3, tim,
	edmund.h.white, JBeulich

Signed-off-by: Ravi Sahita <ravi.sahita@intel.com>
---
 xen/arch/x86/mm/p2m.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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);
-- 
1.9.1

^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2015-07-30  9:21 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-07-29 16:40 [PATCH for 4.6] x86/p2m.c: fix missed off-by-one in altp2m commit Ravi Sahita
2015-07-29 16:46 ` Andrew Cooper
2015-07-30  9:21   ` Ian Campbell

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.