This is a note to let you know that I've just added the patch titled

    efi: initialize efi.runtime_version to make 
query_variable_info/update_capsule workable

to the 3.6-stable tree which can be found at:
    
http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary

The filename of the patch is:
     
efi-initialize-efi.runtime_version-to-make-query_variable_info-update_capsule-workable.patch
and it can be found in the queue-3.6 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree,
please let <stable@vger.kernel.org> know about it.


>From d6cf86d8f23253225fe2a763d627ecf7dfee9dae Mon Sep 17 00:00:00 2001
From: Seiji Aguchi <seiji.agu...@hds.com>
Date: Tue, 24 Jul 2012 13:27:23 +0000
Subject: efi: initialize efi.runtime_version to make 
query_variable_info/update_capsule workable

From: Seiji Aguchi <seiji.agu...@hds.com>

commit d6cf86d8f23253225fe2a763d627ecf7dfee9dae upstream.

A value of efi.runtime_version is checked before calling
update_capsule()/query_variable_info() as follows.
But it isn't initialized anywhere.

<snip>
static efi_status_t virt_efi_query_variable_info(u32 attr,
                                                 u64 *storage_space,
                                                 u64 *remaining_space,
                                                 u64 *max_variable_size)
{
        if (efi.runtime_version < EFI_2_00_SYSTEM_TABLE_REVISION)
                return EFI_UNSUPPORTED;
<snip>

This patch initializes a value of efi.runtime_version at boot time.

Signed-off-by: Seiji Aguchi <seiji.agu...@hds.com>
Acked-by: Matthew Garrett <m...@redhat.com>
Signed-off-by: Matt Fleming <matt.flem...@intel.com>
Signed-off-by: Ivan Hu <ivan...@canonical.com>
Signed-off-by: Greg Kroah-Hartman <gre...@linuxfoundation.org>

---
 arch/x86/platform/efi/efi.c |    1 +
 1 file changed, 1 insertion(+)

--- a/arch/x86/platform/efi/efi.c
+++ b/arch/x86/platform/efi/efi.c
@@ -890,6 +890,7 @@ void __init efi_enter_virtual_mode(void)
         *
         * Call EFI services through wrapper functions.
         */
+       efi.runtime_version = efi_systab.fw_revision;
        efi.get_time = virt_efi_get_time;
        efi.set_time = virt_efi_set_time;
        efi.get_wakeup_time = virt_efi_get_wakeup_time;


Patches currently in stable-queue which might be from seiji.agu...@hds.com are

queue-3.6/efi-initialize-efi.runtime_version-to-make-query_variable_info-update_capsule-workable.patch
--
To unsubscribe from this list: send the line "unsubscribe stable" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to