Re: [Qemu-devel] [PATCH] vnc_refresh: return if vd-timer is NULL

2010-01-12 Thread Anthony Liguori
On 01/11/2010 11:30 AM, Stefano Stabellini wrote: Hi all, calling vnc_update_client in vnc_refresh might have the unlikely side effect of setting vd-timer = NULL, if the last vnc client disconnected. In this case we have to return from vnc_refresh without updating the timer, otherwise we cause a

[Qemu-devel] [PATCH] vnc_refresh: return if vd-timer is NULL

2010-01-11 Thread Stefano Stabellini
Hi all, calling vnc_update_client in vnc_refresh might have the unlikely side effect of setting vd-timer = NULL, if the last vnc client disconnected. In this case we have to return from vnc_refresh without updating the timer, otherwise we cause a segfault. Signed-off-by: Stefano Stabellini