Re: [Qemu-devel] [PATCH] monitor: Cleanup mon->outbuf on write error

2014-01-29 Thread Luiz Capitulino
On Wed, 29 Jan 2014 12:46:04 +0200 Stratos Psomadakis wrote: > On 01/27/2014 12:30 PM, Stratos Psomadakis wrote: > > In case monitor_flush() fails to write the contents of mon->outbuf to > > the output device, mon->outbuf is not cleaned up properly. Check the > > return code of the qemu_chr_fe_wr

Re: [Qemu-devel] [PATCH] monitor: Cleanup mon->outbuf on write error

2014-01-29 Thread Stratos Psomadakis
On 01/27/2014 12:30 PM, Stratos Psomadakis wrote: > In case monitor_flush() fails to write the contents of mon->outbuf to > the output device, mon->outbuf is not cleaned up properly. Check the > return code of the qemu_chr_fe_write() function and cleanup the outbuf > if it fails. > > References: >

[Qemu-devel] [PATCH] monitor: Cleanup mon->outbuf on write error

2014-01-27 Thread Stratos Psomadakis
In case monitor_flush() fails to write the contents of mon->outbuf to the output device, mon->outbuf is not cleaned up properly. Check the return code of the qemu_chr_fe_write() function and cleanup the outbuf if it fails. References: http://lists.nongnu.org/archive/html/qemu-devel/2014-01/msg028