aboutsummaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorDavid Woodhouse <David.Woodhouse@intel.com>2013-01-07 16:52:16 -0500
committerH. Peter Anvin <hpa@linux.intel.com>2013-01-27 23:19:37 -0500
commit70a479cbe80296d3113e65cc2f713a5101061daf (patch)
tree323d8639cec09ff34ad3261176dfd8df9481aa6e /arch
parent09c205afde70c15f20ca76ba0a57409dad175fd0 (diff)
x86, efi: Fix display detection in EFI boot stub
When booting under OVMF we have precisely one GOP device, and it implements the ConOut protocol. We break out of the loop when we look at it... and then promptly abort because 'first_gop' never gets set. We should set first_gop *before* breaking out of the loop. Yes, it doesn't really mean "first" any more, but that doesn't matter. It's only a flag to indicate that a suitable GOP was found. In fact, we'd do just as well to initialise 'width' to zero in this function, then just check *that* instead of first_gop. But I'll do the minimal fix for now (and for stable@). Signed-off-by: David Woodhouse <David.Woodhouse@intel.com> Cc: <stable@kernel.org> Link: http://lkml.kernel.org/r/1358513837.2397.247.camel@shinybook.infradead.org Signed-off-by: H. Peter Anvin <hpa@linux.intel.com> Cc: Matt Fleming <matt.fleming@intel.com>
Diffstat (limited to 'arch')
-rw-r--r--arch/x86/boot/compressed/eboot.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/arch/x86/boot/compressed/eboot.c b/arch/x86/boot/compressed/eboot.c
index 18e329ca108e..448a86e154a9 100644
--- a/arch/x86/boot/compressed/eboot.c
+++ b/arch/x86/boot/compressed/eboot.c
@@ -432,10 +432,9 @@ static efi_status_t setup_gop(struct screen_info *si, efi_guid_t *proto,
432 * Once we've found a GOP supporting ConOut, 432 * Once we've found a GOP supporting ConOut,
433 * don't bother looking any further. 433 * don't bother looking any further.
434 */ 434 */
435 first_gop = gop;
435 if (conout_found) 436 if (conout_found)
436 break; 437 break;
437
438 first_gop = gop;
439 } 438 }
440 } 439 }
441 440