8229e33 vbox: fix segfault on virsh dumpxml with the existence of USB filters

1 file Authored by Ryota Ozaki 10 years ago, Committed by Laine Stump 10 years ago,
    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>
    
        
file modified
+2 -1