]> git.ipfire.org Git - thirdparty/libvirt.git/commit
bhyve: fix crash on missing interface model
authorRoman Bogorodskiy <bogorodskiy@gmail.com>
Sun, 11 Mar 2018 16:00:08 +0000 (20:00 +0400)
committerRoman Bogorodskiy <bogorodskiy@gmail.com>
Mon, 12 Mar 2018 16:08:03 +0000 (20:08 +0400)
commitde3fe191f5eab6702a8f83da091af4e8e8098d47
tree6dca1e42d7ee2a9158886281665b37fa3b65c86f
parent1b6ff36c2f506a3b939411e322f4c9f51d33c7d6
bhyve: fix crash on missing interface model

The bhyve driver crashes in bhyveBuildNetArgStr() when
network interface model is not defined. As it has to be provided
explicitly, add a check to report an error if it's missing.

Signed-off-by: Roman Bogorodskiy <bogorodskiy@gmail.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
src/bhyve/bhyve_command.c