• Matt Fleming's avatar
    efi/esrt: Use efi_mem_reserve() and avoid a kmalloc() · 8e80632f
    Matt Fleming authored
    We can use the new efi_mem_reserve() API to mark the ESRT table as
    reserved forever and save ourselves the trouble of copying the data
    out into a kmalloc buffer.
    
    The added advantage is that now the ESRT driver will work across
    kexec reboot.
    
    Tested-by: Dave Young <dyoung@redhat.com> [kexec/kdump]
    Tested-by: Ard Biesheuvel <ard.biesheuvel@linaro.org> [arm]
    Acked-by: default avatarArd Biesheuvel <ard.biesheuvel@linaro.org>
    Cc: Leif Lindholm <leif.lindholm@linaro.org>
    Cc: Peter Jones <pjones@redhat.com>
    Cc: Borislav Petkov <bp@alien8.de>
    Cc: Mark Rutland <mark.rutland@arm.com>
    Signed-off-by: default avatarMatt Fleming <matt@codeblueprint.co.uk>
    8e80632f
esrt.c 10.5 KB