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

(cherry picked from commit 3256b7ca36e739a08f141a7ee52b9db9d995db85)

Details

Provenance
corvinkAuthored on Apr 1 2022, 8:20 AM
manuCommitted on May 16 2022, 3:24 PM
Reviewer
jhb
Differential Revision
D34600: bhyve: avoid an empty passthru config value
Parents
rG718cb64a1f7b: mpsutil: Fix device speed reporting.
Branches
Unknown
Tags
Unknown