summaryrefslogtreecommitdiff
path: root/hw/char
diff options
context:
space:
mode:
authorRahul Dadhich <r.dadhich@samsung.com>2018-06-13 15:08:07 +0530
committerRahul Dadhich <r.dadhich@samsung.com>2018-06-13 15:13:56 +0530
commitdc3848011053d7d8dd4eff5b1d4147dbd59b78ca (patch)
tree851d4c08b959f5583f3c7c04fc32fbe39f34b8fc /hw/char
parentf998471ef950dc559a40c902e8debfa131579d8e (diff)
downloadqemu-dc3848011053d7d8dd4eff5b1d4147dbd59b78ca.tar.gz
qemu-dc3848011053d7d8dd4eff5b1d4147dbd59b78ca.tar.bz2
qemu-dc3848011053d7d8dd4eff5b1d4147dbd59b78ca.zip
[SATDEVKIT-786]Open source security issues fix
Change-Id: If3c955c4ff33114725dde8f38c118e0a25387727 Signed-off-by: Rahul Dadhich <r.dadhich@samsung.com>
Diffstat (limited to 'hw/char')
-rw-r--r--hw/char/serial.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/hw/char/serial.c b/hw/char/serial.c
index ffbacd8227..67b18eda12 100644
--- a/hw/char/serial.c
+++ b/hw/char/serial.c
@@ -906,6 +906,16 @@ void serial_realize_core(SerialState *s, Error **errp)
void serial_exit_core(SerialState *s)
{
qemu_chr_fe_deinit(&s->chr);
+
+ timer_del(s->modem_status_poll);
+ timer_free(s->modem_status_poll);
+
+ timer_del(s->fifo_timeout_timer);
+ timer_free(s->fifo_timeout_timer);
+
+ fifo8_destroy(&s->recv_fifo);
+ fifo8_destroy(&s->xmit_fifo);
+
qemu_unregister_reset(serial_reset, s);
}