Page MenuHomeFreeBSD

D34600.id103983.diff
No OneTemporary

D34600.id103983.diff

diff --git a/usr.sbin/bhyve/pci_passthru.c b/usr.sbin/bhyve/pci_passthru.c
--- a/usr.sbin/bhyve/pci_passthru.c
+++ b/usr.sbin/bhyve/pci_passthru.c
@@ -662,7 +662,12 @@
snprintf(value, sizeof(value), "%d", func);
set_config_value_node(nvl, "func", value);
- return (pci_parse_legacy_config(nvl, strchr(opts, ',')));
+ opts = strchr(opts, ',');
+ if (opts == NULL) {
+ return (0);
+ }
+
+ return pci_parse_legacy_config(nvl, opts + 1);
}
static int

File Metadata

Mime Type
text/plain
Expires
Sat, Jul 18, 9:32 AM (7 h, 58 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
35194491
Default Alt Text
D34600.id103983.diff (459 B)

Event Timeline