diff options
| author | Ryan Moeller <freqlabs@FreeBSD.org> | 2021-04-22 16:06:08 +0000 |
|---|---|---|
| committer | Ryan Moeller <freqlabs@FreeBSD.org> | 2021-04-22 16:06:08 +0000 |
| commit | 89c3c32647a5099b297af2958e5a939eff0c0ce0 (patch) | |
| tree | 98c5ffd9184ed32b771f775aa359e824abbcdf09 /usr.sbin | |
| parent | 7ea3223c7822d20acfc907683fd0153d623185b3 (diff) | |
Diffstat (limited to 'usr.sbin')
| -rw-r--r-- | usr.sbin/bhyve/pci_virtio_scsi.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/usr.sbin/bhyve/pci_virtio_scsi.c b/usr.sbin/bhyve/pci_virtio_scsi.c index aed2fe2dbb23..e8124b9b3441 100644 --- a/usr.sbin/bhyve/pci_virtio_scsi.c +++ b/usr.sbin/bhyve/pci_virtio_scsi.c @@ -662,6 +662,9 @@ pci_vtscsi_legacy_config(nvlist_t *nvl, const char *opts) { char *cp, *devname; + if (opts == NULL) + return (0); + cp = strchr(opts, ','); if (cp == NULL) { set_config_value_node(nvl, "dev", opts); |
