]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
bhyve: fix regression in legacy virtio-9p config parsing
authorRoman Bogorodskiy <novel@FreeBSD.org>
Thu, 8 Apr 2021 14:44:58 +0000 (18:44 +0400)
committerRoman Bogorodskiy <novel@FreeBSD.org>
Thu, 8 Apr 2021 14:44:58 +0000 (18:44 +0400)
commitf2ecc0d1b7d569b4b2c930c7450390c04778ee8a
tree21ec1adbc2275098446bb2bbcb3bad115488364a
parent9f2eeb02623d6a847a90da68a5892c25b14ce2d4
bhyve: fix regression in legacy virtio-9p config parsing

Commit 621b5090487de9fed1b503769702a9a2a27cc7bb introduced a regression
in legacy virtio-9p config parsing by not initializing *sharename to
NULL. As a result, "sharename != NULL" check in the first iteration fails
and bhyve exits with "virtio-9p: more than one share name given".

Fix by adding NULL back.

Approved by: grehan
usr.sbin/bhyve/pci_virtio_9p.c