Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F177852502
D33969.1795433286.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Authored By
Unknown
Size
409 B
Referenced Files
None
Subscribers
None
D33969.1795433286.diff
View Options
diff --git a/usr.sbin/bhyve/pci_ahci.c b/usr.sbin/bhyve/pci_ahci.c
--- a/usr.sbin/bhyve/pci_ahci.c
+++ b/usr.sbin/bhyve/pci_ahci.c
@@ -2440,7 +2440,7 @@
slots = 32;
ports_nvl = find_relative_config_node(nvl, "port");
- for (p = 0; p < MAX_PORTS; p++) {
+ for (p = 0; ports_nvl != NULL && p < MAX_PORTS; p++) {
struct ata_params *ata_ident = &sc->port[p].ata_ident;
char ident[AHCI_PORT_IDENT];
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Nov 23, 11:28 AM (11 h, 25 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
41929337
Default Alt Text
D33969.1795433286.diff (409 B)
Attached To
Mode
D33969: bhyve: ahci: Fix regression with no ports
Attached
Detach File
Event Timeline