]> git.baikalelectronics.ru Git - kernel.git/commit
efi/gop: Return EFI_NOT_FOUND if there are no usable GOPs
authorArvind Sankar <nivedita@alum.mit.edu>
Fri, 6 Dec 2019 16:55:38 +0000 (16:55 +0000)
committerIngo Molnar <mingo@kernel.org>
Sun, 8 Dec 2019 11:42:18 +0000 (12:42 +0100)
commit6fc3cec30dfeee7d3c5db8154016aff9d65503c5
treecc2f89eb7d31146b0b2dc786ca40f824d31f742f
parentab0eb16205b43ece4c78e2259e681ff3d645ea66
efi/gop: Return EFI_NOT_FOUND if there are no usable GOPs

If we don't find a usable instance of the Graphics Output Protocol
(GOP) because none of them have a framebuffer (i.e. they were all
PIXEL_BLT_ONLY), but all the EFI calls succeeded, we will return
EFI_SUCCESS even though we didn't find a usable GOP.

Fix this by explicitly returning EFI_NOT_FOUND if no usable GOPs are
found, allowing the caller to probe for UGA instead.

Signed-off-by: Arvind Sankar <nivedita@alum.mit.edu>
Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
Cc: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Cc: Bhupesh Sharma <bhsharma@redhat.com>
Cc: Masayoshi Mizuma <m.mizuma@jp.fujitsu.com>
Cc: linux-efi@vger.kernel.org
Link: https://lkml.kernel.org/r/20191206165542.31469-3-ardb@kernel.org
Signed-off-by: Ingo Molnar <mingo@kernel.org>
drivers/firmware/efi/libstub/gop.c