syscons - Fix syscons with UEFI fb when drm fb is registered during boot.
commitcc624b1689c0caad8d17c4b4b4edeca001a07a88
authorImre Vadász <imre@vdsz.com>
Sat, 26 Nov 2016 22:49:01 +0000 (26 23:49 +0100)
committerImre Vadász <imre@vdsz.com>
Sun, 27 Nov 2016 00:51:15 +0000 (27 01:51 +0100)
treeafbe36cf0adc6d558e5f4e9c3e39d80f3eaf083c
parentae88e4ee083dbf5a51e10cae2cdf213e2a7c5225
syscons - Fix syscons with UEFI fb when drm fb is registered during boot.

* Fix sc->fbi related checks in register_framebuffer() and scinit(), to
  patch up the case where the drm framebuffer is registered before
  syscons' late initialization (i.e. the actual syscons attach function)
  runs.

* Change some of the SC_EFI_FB checks in scinit() to check instead for
  sc->fbi != NULL.
sys/dev/misc/syscons/syscons.c