diff options
author | Ard Biesheuvel | 2017-06-02 15:52:00 +0200 |
---|---|---|
committer | Ingo Molnar | 2017-06-05 17:50:40 +0200 |
commit | 82c3768b8d68c40ecde92338899c838b7c674ffb (patch) | |
tree | 9f4c25c2d4f56a48f1f09eac42fe33d45e0ec46a /drivers/firmware/efi/test | |
parent | efi/capsule: Adjust return type of efi_capsule_setup_info() (diff) | |
download | kernel-qcow2-linux-82c3768b8d68c40ecde92338899c838b7c674ffb.tar.gz kernel-qcow2-linux-82c3768b8d68c40ecde92338899c838b7c674ffb.tar.xz kernel-qcow2-linux-82c3768b8d68c40ecde92338899c838b7c674ffb.zip |
efi/capsule-loader: Use a cached copy of the capsule header
Instead of kmapping the capsule data twice, copy the capsule header
into the capsule info struct we keep locally. This is an improvement
by itself, but will also enable handling of non-standard header formats
more easily.
Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Reviewed-by: Matt Fleming <matt@codeblueprint.co.uk>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: linux-efi@vger.kernel.org
Link: http://lkml.kernel.org/r/20170602135207.21708-7-ard.biesheuvel@linaro.org
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'drivers/firmware/efi/test')
0 files changed, 0 insertions, 0 deletions