Patch "efi/efivar_ssdt_load: Don't return success on allocation failure" has been added to the 4.9-stable tree
Subsystems (2)
This is a note to let you know that I've just added the patch titled
efi/efivar_ssdt_load: Don't return success on allocation failure
to the 4.9-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-efivar_ssdt_load-don-t-return-success-on-allocation-failure.patch
and it can be found in the queue-4.9 subdirectory.
If you, or anyone else, feels it should not be added to the stable tree, please let <[email protected]> know about it.
Quoted 1 line
From
a75dcb5848359f488c32c0aef8711d9bd37a77b8Mon Sep 17 00:00:00 2001
From: Dan Carpenter <[email protected]>
Date: Tue, 18 Oct 2016 15:33:18 +0100
Subject: efi/efivar_ssdt_load: Don't return success on allocation failure
From: Dan Carpenter <[email protected]>
commit a75dcb5848359f488c32c0aef8711d9bd37a77b8 upstream.
We should return -ENOMEM here, instead of success.
--- drivers/firmware/efi/efi.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)
drivers/firmware/efi/efi.c +3 -1
@@ -259,8 +259,10 @@ static __init int efivar_ssdt_load(void) } data =kmalloc (size,GFP_KERNEL ); -if (!data) +if (!data) { + ret = -ENOMEM ; goto free_entry; + } ret =efivar_entry_get (entry,NULL , &size, data);if (ret) {
Patches currently in stable-queue which might be from [email protected] are
queue-4.9/usb-xhci-mem-use-passed-in-gfp-flags-instead-of-gfp_kernel.patch queue-4.9/efi-efivar_ssdt_load-don-t-return-success-on-allocation-failure.patch