]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
hyperv/vmbus: avoid crash, panic if vbe fb info is missing
authorbhughes <bhughes@FreeBSD.org>
Thu, 10 Dec 2020 13:11:52 +0000 (13:11 +0000)
committerbhughes <bhughes@FreeBSD.org>
Thu, 10 Dec 2020 13:11:52 +0000 (13:11 +0000)
commit2333220ae1a71ce51429b9d206a765df0562c987
tree0c5c64322f3e990c9aff73c9cb58bc886b2d1544
parent23982f44e537c700e567101221fe2c6f51329648
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