Re: [Qemu-devel] [PATCH] edu: fix memory leak on msi_broken platforms

2017-05-31 Thread Peter Xu
On Wed, May 31, 2017 at 02:57:46PM +0200, Paolo Bonzini wrote: > If msi_init fails, the thread has already been created and the > mutex/condvar are not destroyed. Initialize everything only > after the point where pci_edu_realize cannot fail. > > Reported-by: Markus Armbruster

Re: [Qemu-devel] [PATCH] edu: fix memory leak on msi_broken platforms

2017-05-31 Thread Markus Armbruster
Paolo Bonzini writes: > If msi_init fails, the thread has already been created and the > mutex/condvar are not destroyed. Initialize everything only > after the point where pci_edu_realize cannot fail. > > Reported-by: Markus Armbruster > Cc: Peter Xu

[Qemu-devel] [PATCH] edu: fix memory leak on msi_broken platforms

2017-05-31 Thread Paolo Bonzini
If msi_init fails, the thread has already been created and the mutex/condvar are not destroyed. Initialize everything only after the point where pci_edu_realize cannot fail. Reported-by: Markus Armbruster Cc: Peter Xu Signed-off-by: Paolo Bonzini