bhyve: regression in virtio-9p option parsing

Peter Grehan grehan at freebsd.org
Thu Apr 8 00:38:40 UTC 2021


Hi Roman,

> diff --git a/usr.sbin/bhyve/pci_virtio_9p.c b/usr.sbin/bhyve/pci_virtio_9p.c
> index e27159eb22cb..830e13878a71 100644
> --- a/usr.sbin/bhyve/pci_virtio_9p.c
> +++ b/usr.sbin/bhyve/pci_virtio_9p.c
> @@ -232,7 +232,7 @@ pci_vt9p_notify(void *vsc, struct vqueue_info *vq)
>   static int
>   pci_vt9p_legacy_config(nvlist_t *nvl, const char *opts)
>   {
> -       char *sharename, *tofree, *token, *tokens;
> +       char *sharename = NULL, *tofree, *token, *tokens;
> 
>          if (opts == NULL)
>                  return (0);

  This looks fine to commit.

later,

Peter.


More information about the freebsd-virtualization mailing list