]> git.ipfire.org Git - thirdparty/libvirt.git/commit
vbox: fix segfault on virsh dumpxml with the existence of USB filters
authorRyota Ozaki <ozaki.ryota@gmail.com>
Mon, 18 Nov 2013 15:39:55 +0000 (00:39 +0900)
committerLaine Stump <laine@laine.org>
Tue, 19 Nov 2013 14:19:26 +0000 (16:19 +0200)
commit8229e33adc3d8ed71a3d5864fd10cce2ec6895a6
tree664252b2bdd404c3b5222a496d2425dd21fcf0c7
parent4a601c30801e4dbbbcafb96f3219cbe1bd4a8622
vbox: fix segfault on virsh dumpxml with the existence of USB filters

A USB filter is stored in a hostdev. The original code doesn't
allocate hostdev->info that is expected to be allocated with hostdev.
So use virDomainHostdevDefAlloc() to allocate both as we expect.

Signed-off-by: Ryota Ozaki <ozaki.ryota@gmail.com>
src/vbox/vbox_tmpl.c