]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
hyperv/vmbus: avoid crash, panic if vbe fb info is missing
authorBradley T. Hughes <bhughes@FreeBSD.org>
Thu, 10 Dec 2020 13:11:52 +0000 (13:11 +0000)
committerBradley T. Hughes <bhughes@FreeBSD.org>
Thu, 10 Dec 2020 13:11:52 +0000 (13:11 +0000)
commitc05b5848f11b4b551b104a183231409ed4874c66
tree0c5c64322f3e990c9aff73c9cb58bc886b2d1544
parent6580cc162dd5297b520fe1be21579bc787974ffb
hyperv/vmbus: avoid crash, panic if vbe fb info is missing

Do not assume that VBE framebuffer metadata can be used. Like with the
EFI fb metadata, it may be null, so we should take care not to
dereference the null vbefb pointer. This avoids a panic when booting
-CURRENT on a gen1 VM in Azure.

Approved by: tsoome
Sponsored by: Miles AS
Differential Revision: https://reviews.freebsd.org/D27533
sys/dev/hyperv/vmbus/vmbus.c