]> git.baikalelectronics.ru Git - kernel.git/commit
efi/capsule-loader: Use a cached copy of the capsule header
authorArd Biesheuvel <ard.biesheuvel@linaro.org>
Fri, 2 Jun 2017 13:52:00 +0000 (13:52 +0000)
committerIngo Molnar <mingo@kernel.org>
Mon, 5 Jun 2017 15:50:40 +0000 (17:50 +0200)
commit82c3768b8d68c40ecde92338899c838b7c674ffb
tree9f4c25c2d4f56a48f1f09eac42fe33d45e0ec46a
parent41b0c376951417d1b37448957b30f766b10d3090
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>
drivers/firmware/efi/capsule-loader.c