Page MenuHomeFreeBSD

D42414.id129619.diff
No OneTemporary

D42414.id129619.diff

diff --git a/sys/dev/hyperv/vmbus/vmbus.c b/sys/dev/hyperv/vmbus/vmbus.c
--- a/sys/dev/hyperv/vmbus/vmbus.c
+++ b/sys/dev/hyperv/vmbus/vmbus.c
@@ -1393,7 +1393,7 @@
int ret;
device_t dev_res;
ACPI_HANDLE handle;
- unsigned int coherent;
+ unsigned int coherent = 0;
if (sc->vmbus_flags & VMBUS_FLAG_ATTACHED)
return (0);
@@ -1416,10 +1416,12 @@
/* Coherency attribute */
dev_res = devclass_get_device(devclass_find("vmbus_res"), 0);
- handle = acpi_get_handle(dev_res);
+ if (dev_res != NULL) {
+ handle = acpi_get_handle(dev_res);
- if (ACPI_FAILURE(acpi_GetInteger(handle, "_CCA", &coherent)))
- coherent = 0;
+ if (ACPI_FAILURE(acpi_GetInteger(handle, "_CCA", &coherent)))
+ coherent = 0;
+ }
if (bootverbose)
device_printf(sc->vmbus_dev, "Bus is%s cache-coherent\n",
coherent ? "" : " not");

File Metadata

Mime Type
text/plain
Expires
Sun, Apr 12, 3:16 PM (2 h, 1 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
31355528
Default Alt Text
D42414.id129619.diff (833 B)

Event Timeline