summaryrefslogtreecommitdiffstats
path: root/drivers/pcmcia/pxa2xx_palmtc.c
diff options
context:
space:
mode:
authorJeffrey Hugo <jhugo@codeaurora.org>2016-08-29 22:38:51 +0200
committerMatt Fleming <matt@codeblueprint.co.uk>2016-09-05 13:18:17 +0200
commitdadb57abc37499f565b23933dbf49b435c3ba8af (patch)
tree80721c262bfd0a51f3448b09d6a4b392701f2202 /drivers/pcmcia/pxa2xx_palmtc.c
parentefi: Fix handling error value in fdt_find_uefi_params (diff)
downloadlinux-dadb57abc37499f565b23933dbf49b435c3ba8af.tar.xz
linux-dadb57abc37499f565b23933dbf49b435c3ba8af.zip
efi/libstub: Allocate headspace in efi_get_memory_map()
efi_get_memory_map() allocates a buffer to store the memory map that it retrieves. This buffer may need to be reused by the client after ExitBootServices() is called, at which point allocations are not longer permitted. To support this usecase, provide the allocated buffer size back to the client, and allocate some additional headroom to account for any reasonable growth in the map that is likely to happen between the call to efi_get_memory_map() and the client reusing the buffer. Signed-off-by: Jeffrey Hugo <jhugo@codeaurora.org> Cc: Ard Biesheuvel <ard.biesheuvel@linaro.org> Cc: Mark Rutland <mark.rutland@arm.com> Cc: Leif Lindholm <leif.lindholm@linaro.org> Cc: Ingo Molnar <mingo@kernel.org> Cc: <stable@vger.kernel.org> Signed-off-by: Matt Fleming <matt@codeblueprint.co.uk>
Diffstat (limited to 'drivers/pcmcia/pxa2xx_palmtc.c')
0 files changed, 0 insertions, 0 deletions