]> git.baikalelectronics.ru Git - kernel.git/commit
efi: Fix comment for efi_mem_type() wrt absent physical addresses
authorAnshuman Khandual <anshuman.khandual@arm.com>
Mon, 13 Jan 2020 17:22:41 +0000 (18:22 +0100)
committerIngo Molnar <mingo@kernel.org>
Mon, 20 Jan 2020 07:14:28 +0000 (08:14 +0100)
commit46825fe77720a6842d852e498a475552842588dc
treed9e9038fa17b2d94c95fb3eb09466dcffd83931a
parentc001cf868302051e176ec627e4306a62ba20a973
efi: Fix comment for efi_mem_type() wrt absent physical addresses

A previous commit e4c9caa6ddfd ("efi: Update efi_mem_type() to return an
error rather than 0") changed the return value from EFI_RESERVED_TYPE to
-EINVAL when the searched physical address is not present in any memory
descriptor. But the comment preceding the function never changed. Let's
change the comment now to reflect the new return value -EINVAL.

Signed-off-by: Anshuman Khandual <anshuman.khandual@arm.com>
Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Link: https://lore.kernel.org/r/20200113172245.27925-10-ardb@kernel.org
drivers/firmware/efi/efi.c