mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-10-05 22:05:47 +00:00
hostdev: add virObject field to virHostdevManager struct
Commit 6b306d66
converted virHostdevManager to a virObject, but
missed adding a virObject field to the virHostdevManager struct.
Result is memory corruption when taking a reference on an instance
of the object, where atomic inc is done on the stateDir field.
Later use of stateDir crashes libvirtd.
This commit is contained in:
parent
41700d2152
commit
b322717f6e
@ -45,6 +45,8 @@ typedef enum {
|
||||
typedef struct _virHostdevManager virHostdevManager;
|
||||
typedef virHostdevManager *virHostdevManagerPtr;
|
||||
struct _virHostdevManager {
|
||||
virObject parent;
|
||||
|
||||
char *stateDir;
|
||||
|
||||
virPCIDeviceListPtr activePCIHostdevs;
|
||||
|
Loading…
Reference in New Issue
Block a user