diff options
author | Jia-Ju Bai | 2018-03-08 09:00:14 +0100 |
---|---|---|
committer | Ingo Molnar | 2018-03-09 08:58:22 +0100 |
commit | 9f66d8d73e654c5f867daa6aa186300ecaf49d3a (patch) | |
tree | 003f256d71b4d46dbf30de1dea702cdfae94bacb /scripts/spelling.txt | |
parent | efi/arm64: Check whether x18 is preserved by runtime services calls (diff) | |
download | kernel-qcow2-linux-9f66d8d73e654c5f867daa6aa186300ecaf49d3a.tar.gz kernel-qcow2-linux-9f66d8d73e654c5f867daa6aa186300ecaf49d3a.tar.xz kernel-qcow2-linux-9f66d8d73e654c5f867daa6aa186300ecaf49d3a.zip |
x86/efi: Replace GFP_ATOMIC with GFP_KERNEL in efi_query_variable_store()
efi_query_variable_store() does an atomic kzalloc() unnecessarily,
because we can never get this far when called in an atomic context,
namely when nonblocking == 1.
Replace it with GFP_KERNEL.
This was found by the DCNS static analysis tool written by myself.
Signed-off-by: Jia-Ju Bai <baijiaju1990@gmail.com>
Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Matt Fleming <matt@codeblueprint.co.uk>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: linux-efi@vger.kernel.org
Link: http://lkml.kernel.org/r/20180308080020.22828-7-ard.biesheuvel@linaro.org
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'scripts/spelling.txt')
0 files changed, 0 insertions, 0 deletions