Re: [PATCH v2] qemu: Pass / fill niothreads for qemuMonitorGetIOThreads

2020-12-03 Thread Michal Privoznik
On 12/2/20 6:34 PM, John Ferlan wrote: Let's pass along / fill @niothreads rather than trying to make dual use as a return value and thread count. This resolves a Coverity issue detected in qemuDomainGetIOThreadsMon where if qemuDomainObjExitMonitor failed, then a -1 was returned and overwrite @

[PATCH v2] qemu: Pass / fill niothreads for qemuMonitorGetIOThreads

2020-12-02 Thread John Ferlan
Let's pass along / fill @niothreads rather than trying to make dual use as a return value and thread count. This resolves a Coverity issue detected in qemuDomainGetIOThreadsMon where if qemuDomainObjExitMonitor failed, then a -1 was returned and overwrite @niothreads causing a memory leak. Signed