Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F151935556
D42414.id129619.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
833 B
Referenced Files
None
Subscribers
None
D42414.id129619.diff
View Options
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
Details
Attached
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)
Attached To
Mode
D42414: Hyper-V: vmbus: Add NULL check for vmbus_res
Attached
Detach File
Event Timeline
Log In to Comment