|
From: | Paolo Bonzini |
Subject: | Re: [Qemu-devel] [PATCH 05/12] serial: fixing vmstate for save/restore |
Date: | Tue, 26 Aug 2014 12:09:47 +0200 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.7.0 |
Il 26/08/2014 09:14, Pavel Dovgalyuk ha scritto: > +static int serial_pre_load(void *opaque) > +{ > + SerialState *s = (SerialState *)opaque; > + s->thr_ipending = -1; > + timer_del(s->fifo_timeout_timer); > + s->timeout_ipending = 0; > + s->poll_msl = -1; > + timer_del(s->modem_status_poll); > + return 0; > +} The two timer_dels and s->timeout_ipending = 0 should be in the reset function rather than here. The two assignments of -1 are correct here. Thanks, Paolo
[Prev in Thread] | Current Thread | [Next in Thread] |