summaryrefslogtreecommitdiff
path: root/drivers/firmware/efi/capsule.c
diff options
context:
space:
mode:
authorArd Biesheuvel <ard.biesheuvel@linaro.org>2017-06-02 16:52:00 +0300
committerIngo Molnar <mingo@kernel.org>2017-06-05 18:50:40 +0300
commit82c3768b8d68c40ecde92338899c838b7c674ffb (patch)
tree9f4c25c2d4f56a48f1f09eac42fe33d45e0ec46a /drivers/firmware/efi/capsule.c
parent41b0c376951417d1b37448957b30f766b10d3090 (diff)
downloadlinux-82c3768b8d68c40ecde92338899c838b7c674ffb.tar.xz
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/capsule.c')
0 files changed, 0 insertions, 0 deletions