efi: capsule: use atomic kmap for transient sglist mappings
authorArd Biesheuvel <ardb@kernel.org>
Mon, 7 Dec 2020 16:33:33 +0000 (17:33 +0100)
committerArd Biesheuvel <ardb@kernel.org>
Mon, 7 Dec 2020 18:31:43 +0000 (19:31 +0100)
commit91c1c092f27da4164d55ca81e0a483108f8a3235
tree38f2f5ffc9240d401ac60e34d5c9b56cfdc8a5c7
parentb283477d394ac41ca59ee20eb9293ae9002eb1d7
efi: capsule: use atomic kmap for transient sglist mappings

Don't use the heavy-weight kmap() API to create short-lived mappings
of the scatter-gather list entries that are released as soon as the
entries are written. Instead, use kmap_atomic(), which is more suited
to this purpose.

Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
drivers/firmware/efi/capsule.c