[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-devel] [PATCH] x86/EFI: permit setting variable with non-zero attributes


  • To: Jan Beulich <JBeulich@xxxxxxxx>, xen-devel <xen-devel@xxxxxxxxxxxxx>
  • From: Keir Fraser <keir.xen@xxxxxxxxx>
  • Date: Tue, 26 Mar 2013 17:20:26 +0000
  • Delivery-date: Tue, 26 Mar 2013 17:20:57 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xen.org>
  • Thread-index: Ac4qRjSqorLoiZa8P0iIpxZwx6N3QQ==
  • Thread-topic: [Xen-devel] [PATCH] x86/EFI: permit setting variable with non-zero attributes

On 26/03/2013 16:58, "Jan Beulich" <JBeulich@xxxxxxxx> wrote:

> This must have been a copy-and-paste mistake - get_variable uses
> op->misc as output only, and wants to make sure it's zero for future
> extensibility. For set_variable, this is an input though, and hence
> the check is wrong.
> 
> Signed-off-by: Jan Beulich <jbeulich@xxxxxxxx>

Acked-by: Keir Fraser <keir@xxxxxxx>

> --- a/xen/arch/x86/efi/runtime.c
> +++ b/xen/arch/x86/efi/runtime.c
> @@ -398,9 +398,6 @@ int efi_runtime_call(struct xenpf_efi_ru
>          long len;
>          unsigned char *data;
>  
> -        if ( op->misc )
> -            return -EINVAL;
> -
>          len = gwstrlen(guest_handle_cast(op->u.set_variable.name, CHAR16));
>          if ( len < 0 )
>              return len;
> 
> 
> 
> _______________________________________________
> Xen-devel mailing list
> Xen-devel@xxxxxxxxxxxxx
> http://lists.xen.org/xen-devel



_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
http://lists.xen.org/xen-devel


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.