Re: [libvirt] [PATCH] hostdev: add virObject field to virHostdevManager struct

2014-03-13 Thread Jim Fehlig
Eric Blake wrote: > On 03/12/2014 05:26 PM, Jim Fehlig wrote: > >> 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 ato

Re: [libvirt] [PATCH] hostdev: add virObject field to virHostdevManager struct

2014-03-12 Thread Eric Blake
On 03/12/2014 05:26 PM, Jim Fehlig wrote: > 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 stateD

[libvirt] [PATCH] hostdev: add virObject field to virHostdevManager struct

2014-03-12 Thread Jim Fehlig
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.