All of lore.kernel.org
 help / color / mirror / Atom feed
From: Andrew Cooper <andrew.cooper3@citrix.com>
To: Ravi Sahita <ravi.sahita@intel.com>, xen-devel@lists.xenproject.org
Cc: george.dunlap@eu.citrix.com, tim@xen.org, wei.liu2@citrix.com,
	edmund.h.white@intel.com, JBeulich@suse.com
Subject: Re: [PATCH for 4.6] x86/p2m.c: fix missed off-by-one in altp2m commit
Date: Wed, 29 Jul 2015 17:46:01 +0100	[thread overview]
Message-ID: <55B90349.8020905@citrix.com> (raw)
In-Reply-To: <1438188006-4105-1-git-send-email-ravi.sahita@intel.com>

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

  reply	other threads:[~2015-07-29 16:46 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 [this message]
2015-07-30  9:21   ` Ian Campbell

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=55B90349.8020905@citrix.com \
    --to=andrew.cooper3@citrix.com \
    --cc=JBeulich@suse.com \
    --cc=edmund.h.white@intel.com \
    --cc=george.dunlap@eu.citrix.com \
    --cc=ravi.sahita@intel.com \
    --cc=tim@xen.org \
    --cc=wei.liu2@citrix.com \
    --cc=xen-devel@lists.xenproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.