HomeFreeBSD

bhyve: avoid an empty passthru config value

Description

bhyve: avoid an empty passthru config value

pci_parse_legacy_config splits the options string by comma characters.
strchr returns a pointer to the first occurence of a character. In that
case, it's a comma. So, pci_parse_legacy_config will stop at the first
character and creates a new config node with a name of NULL.

Reviewed by: jhb
Differential Revision: https://reviews.freebsd.org/D34600

Details

Provenance
corvinkAuthored on Apr 1 2022, 8:20 AM
manuCommitted on Apr 1 2022, 9:13 AM
Reviewer
jhb
Differential Revision
D34600: bhyve: avoid an empty passthru config value
Parents
rG8ac8adda8dba: bhyve: avoid uninitialized variable
Branches
Unknown
Tags
Unknown