[PATCH 2/2] efi/efi_test: drop useless kfree

2017-04-28 Thread Geliang Tang
Drop useless kfree when memdup_user() failed, since we have already called kfree in memdup_user(). Signed-off-by: Geliang Tang --- drivers/firmware/efi/test/efi_test.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/firmware/efi/test/efi_test.c b/drivers/firmware/

[PATCH 1/2] efi/efi_test: use memdup_user

2017-04-28 Thread Geliang Tang
Use memdup_user() helper instead of open-coding to simplify the code. Signed-off-by: Geliang Tang --- drivers/firmware/efi/test/efi_test.c | 11 +++ 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/drivers/firmware/efi/test/efi_test.c b/drivers/firmware/efi/test/efi_test.c

Re: [PATCH v3] efifb: avoid reconfiguration of BAR that covers the framebuffer

2017-04-28 Thread Yinghai Lu
On Thu, Apr 27, 2017 at 6:55 AM, Ard Biesheuvel wrote: > On 23 April 2017 at 02:45, Yinghai Lu wrote: >> >> looks like those two lines are reversed. you should use: >> pcibios_resource_survey_bus(bus); >> pci_assign_unassigned_root_bus_resources(bus); >> >> please

Re: [PATCH 1/3 v2] xen: Export xen_reboot

2017-04-28 Thread Juergen Gross
On 25/04/17 06:02, Juergen Gross wrote: > On 24/04/17 20:21, Boris Ostrovsky wrote: >> On 04/24/2017 01:58 PM, Julien Grall wrote: >>> The helper xen_reboot will be called by the EFI code in a later patch. >>> >>> Note that the ARM version does not yet exist and will be added in a >>> later patch t

Re: [PATCH V15 07/11] acpi: apei: panic OS with fatal error status block

2017-04-28 Thread Borislav Petkov
On Tue, Apr 18, 2017 at 05:05:19PM -0600, Tyler Baicar wrote: > From: "Jonathan (Zhixiong) Zhang" > > Even if an error status block's severity is fatal, the kernel does not > honor the severity level and panic. > > With the firmware first model, the platform could inform the OS about a > fatal h