« Previous | Next » 

Revision 056f49ff

ID056f49ff2cf645dc484956b00b65a3aa18a1a9a3

Added by Stratos Psomadakis about 10 years ago

monitor: Cleanup mon->outbuf on write error

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/msg02890.html

Signed-off-by: Stratos Psomadakis <>
Signed-off-by: Dimitris Aragiorgis <>
Signed-off-by: Luiz Capitulino <>

Files

  • added
  • modified
  • copied
  • renamed
  • deleted

View differences