From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Semen Protsenko , Ard Biesheuvel , Matt Fleming Subject: [PATCH 3.16 032/125] efi/arm64: Store Runtime Services revision Date: Wed, 3 Sep 2014 15:06:29 -0700 Message-Id: <20140903220624.624226734@linuxfoundation.org> In-Reply-To: <20140903220623.649748296@linuxfoundation.org> References: <20140903220623.649748296@linuxfoundation.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org List-ID: 3.16-stable review patch. If anyone has any objections, please let me know. ------------------ From: Semen Protsenko commit 6a7519e81321343165f89abb8b616df186d3e57a upstream. "efi" global data structure contains "runtime_version" field which must be assigned in order to use it later in Runtime Services virtual calls (virt_efi_* functions). Before this patch "runtime_version" was unassigned (0), so each Runtime Service virtual call that checks revision would fail. Signed-off-by: Semen Protsenko Acked-by: Ard Biesheuvel Signed-off-by: Matt Fleming Signed-off-by: Greg Kroah-Hartman --- arch/arm64/kernel/efi.c | 2 ++ 1 file changed, 2 insertions(+) --- a/arch/arm64/kernel/efi.c +++ b/arch/arm64/kernel/efi.c @@ -464,6 +464,8 @@ static int __init arm64_enter_virtual_mo set_bit(EFI_RUNTIME_SERVICES, &efi.flags); + efi.runtime_version = efi.systab->hdr.revision; + return 0; } early_initcall(arm64_enter_virtual_mode);