Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F142782401
D33969.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
409 B
Referenced Files
None
Subscribers
None
D33969.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
Sat, Jan 24, 1:40 PM (16 h, 30 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
27897384
Default Alt Text
D33969.diff (409 B)
Attached To
Mode
D33969: bhyve: ahci: Fix regression with no ports
Attached
Detach File
Event Timeline
Log In to Comment