Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F108153508
D34600.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
459 B
Referenced Files
None
Subscribers
None
D34600.diff
View Options
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
Details
Attached
Mime Type
text/plain
Expires
Wed, Jan 22, 10:48 PM (16 h, 51 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
16042357
Default Alt Text
D34600.diff (459 B)
Attached To
Mode
D34600: bhyve: avoid an empty passthru config value
Attached
Detach File
Event Timeline
Log In to Comment