|
|
|
|
|
|
|
|
|
|
xen-devel
Re: [Xen-devel] [PATCH] x86: add an extra check when validating a huge p
>>> Keir Fraser <keir.fraser@xxxxxxxxxxxxx> 09.09.09 17:35 >>>
>On 09/09/2009 16:19, "Jan Beulich" <JBeulich@xxxxxxxxxx> 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
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
|
|
|
|
|