* [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* Re: [PATCH for 4.6] x86/p2m.c: fix missed off-by-one in altp2m commit
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
0 siblings, 1 reply; 3+ messages in thread
From: Andrew Cooper @ 2015-07-29 16:46 UTC (permalink / raw)
To: Ravi Sahita, xen-devel
Cc: george.dunlap, tim, wei.liu2, edmund.h.white, JBeulich
On 29/07/15 17:40, Ravi Sahita wrote:
> Signed-off-by: Ravi Sahita <ravi.sahita@intel.com>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.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);
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH for 4.6] x86/p2m.c: fix missed off-by-one in altp2m commit
2015-07-29 16:46 ` Andrew Cooper
@ 2015-07-30 9:21 ` Ian Campbell
0 siblings, 0 replies; 3+ messages in thread
From: Ian Campbell @ 2015-07-30 9:21 UTC (permalink / raw)
To: Andrew Cooper, Ravi Sahita, xen-devel
Cc: george.dunlap, wei.liu2, tim, edmund.h.white, JBeulich
On Wed, 2015-07-29 at 17:46 +0100, Andrew Cooper wrote:
> On 29/07/15 17:40, Ravi Sahita wrote:
> > Signed-off-by: Ravi Sahita <ravi.sahita@intel.com>
>
> Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
Applied.
^ permalink raw reply [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.