firmware: Add request_partial_firmware_into_buf()
authorScott Branden <scott.branden@broadcom.com>
Fri, 2 Oct 2020 17:38:27 +0000 (10:38 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 5 Oct 2020 11:37:04 +0000 (13:37 +0200)
commit59cdb23ca2dfef3b93411d1105409dfe9cd1f62f
treef35af8f3da44a0edaa8b7517707e1b8098933b05
parent89287c169f8ff79d466b274da1d5c862e8b29152
firmware: Add request_partial_firmware_into_buf()

Add request_partial_firmware_into_buf() to allow for portions of a
firmware file to be read into a buffer. This is needed when large firmware
must be loaded in portions from a file on memory constrained systems.

Signed-off-by: Scott Branden <scott.branden@broadcom.com>
Co-developed-by: Kees Cook <keescook@chromium.org>
Signed-off-by: Kees Cook <keescook@chromium.org>
Link: https://lore.kernel.org/r/20201002173828.2099543-16-keescook@chromium.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/base/firmware_loader/firmware.h
drivers/base/firmware_loader/main.c
include/linux/firmware.h