From mboxrd@z Thu Jan 1 00:00:00 1970 From: ard Subject: [PATCH v3 1/7] efi: expose non-blocking set_variable() wrapper to efivars Date: Mon, 14 Dec 2015 11:40:25 +0100 Message-ID: <1450089631-26791-2-git-send-email-ard.biesheuvel@linaro.org> References: <1450089631-26791-1-git-send-email-ard.biesheuvel@linaro.org> Return-path: In-Reply-To: <1450089631-26791-1-git-send-email-ard.biesheuvel-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org> Sender: linux-efi-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org To: linux-efi-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, matt-mF/unelCI9GS6iBeEJttW/XRex20P6io@public.gmane.org Cc: Ard Biesheuvel List-Id: linux-efi@vger.kernel.org From: Ard Biesheuvel Commit 6d80dba1c9fe ("efi: Provide a non-blocking SetVariable() operation") implemented a non-blocking alternative for the UEFI SetVariable() invocation performed by efivars, since it may occur in atomic context. However, this version of the function was never exposed via the efivars struct, so the non-blocking versions was not actually callable. Fix that. Fixes: 6d80dba1c9fe ("efi: Provide a non-blocking SetVariable() operation") Signed-off-by: Ard Biesheuvel --- drivers/firmware/efi/efi.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/firmware/efi/efi.c b/drivers/firmware/efi/efi.c index 027ca212179f..3b52677f459a 100644 --- a/drivers/firmware/efi/efi.c +++ b/drivers/firmware/efi/efi.c @@ -180,6 +180,7 @@ static int generic_ops_register(void) { generic_ops.get_variable = efi.get_variable; generic_ops.set_variable = efi.set_variable; + generic_ops.set_variable_nonblocking = efi.set_variable_nonblocking; generic_ops.get_next_variable = efi.get_next_variable; generic_ops.query_variable_store = efi_query_variable_store; -- 2.5.0