All of lore.kernel.org
 help / color / mirror / Atom feed
From: Michael J Coss <mjcoss@alcatel-lucent.com>
To: "xen-devel@lists.xensource.com" <xen-devel@lists.xensource.com>
Subject: Re: [PATCH] x86: add an extra check when	validating a huge pv L2 entry
Date: Wed, 09 Sep 2009 12:15:42 -0400	[thread overview]
Message-ID: <4AA7D4AE.7080606@alcatel-lucent.com> (raw)
In-Reply-To: <4AA7EB3902000078000142CB@vpn.id2.novell.com>

Jan Beulich wrote:
>>>> Keir Fraser <keir.fraser@eu.citrix.com> 09.09.09 17:35 >>>
>>>>         
>> On 09/09/2009 16:19, "Jan Beulich" <JBeulich@novell.com> wrote:
>>
>>     
>>> -            rc = get_data_page(mfn_to_page(m), d, writeable);
>>> +            if ( mfn_valid(m) )
>>> +                rc = get_data_page(mfn_to_page(m), d, writeable);
>>> +            else
>>> +                rc = -EINVAL;
>>>       
>> 'else rc = 0' would be more like it, eh?
>>     
>
> Oh, yes - I got confused (again) by the inconsistencies in what return
> values mean for the various functions.
>
> Jan
>   
I don't think that that's correct.  The else clause is for the 
mfn_valid(m) failure case, and it seems appropriate to set the rc to 
some non-zero value.

---Michael J Coss

  reply	other threads:[~2009-09-09 16:15 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-09-09 15:19 [PATCH] x86: add an extra check when validating a huge pv L2 entry Jan Beulich
2009-09-09 15:35 ` Keir Fraser
2009-09-09 15:51   ` Jan Beulich
2009-09-09 16:15     ` Michael J Coss [this message]
2009-09-09 17:35       ` Keir Fraser

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=4AA7D4AE.7080606@alcatel-lucent.com \
    --to=mjcoss@alcatel-lucent.com \
    --cc=xen-devel@lists.xensource.com \
    /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.