[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] qemu_timer_pending/qemu_get_timer: cope with NULL timers
On Mon, 2011-12-05 at 14:53 +0000, Stefano Stabellini wrote: > On Mon, 5 Dec 2011, Ian Campbell wrote: > > On Mon, 2011-12-05 at 10:54 +0000, Stefano Stabellini wrote: > > > qemu_timer_pending and qemu_get_timer: don't crash if the timer passed > > > as an argument is NULL. > > > > It would have been useful to mention why a NULL timer is valid here. > > Apart from just being good changelog practice to explain the actual > > reason for a change this would also help tell us why this issue isn't > > being solved further up the stack. One the face of it this seem like > > this ought to be a bug in the caller of qemu_mod_timer. > > Yes, I have been a little bit too concise. > > qemu_mod_timer is not the only caller of > qemu_timer_pending/qemu_get_timer: they are also called by some qemu > save/restore related functions, where the timer being saved and restored > can actually be NULL. Thanks. It sounds to me like the NULL check should have been in the save/restore code but the patch is in so lets not worry about it. Ian. _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-devel
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |