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

Reply via email to