X-Git-Url: http://v3vee.org/palacios/gitweb/gitweb.cgi?a=blobdiff_plain;f=palacios%2Fsrc%2Fpalacios%2Fvmm_time.c;h=f7cbb9e77e8cc40c98205db58bf372e814346248;hb=a48fed88738b625fea8a606f5b327d32db91f009;hp=b2f31a4bbd023683717b281a3436d8d4918017c6;hpb=acaadd79c597c8d5180fbfbec79c01fef3dff003;p=palacios.git diff --git a/palacios/src/palacios/vmm_time.c b/palacios/src/palacios/vmm_time.c index b2f31a4..f7cbb9e 100644 --- a/palacios/src/palacios/vmm_time.c +++ b/palacios/src/palacios/vmm_time.c @@ -530,7 +530,9 @@ void v3_deinit_time_core(struct guest_info * core) { struct v3_timer * tmr = NULL; struct v3_timer * tmp = NULL; - list_for_each_entry_safe(tmr, tmp, &(time_state->timers), timer_link) { - v3_remove_timer(core, tmr); + if (*(void**)&time_state->timers) { + list_for_each_entry_safe(tmr, tmp, &(time_state->timers), timer_link) { + v3_remove_timer(core, tmr); + } } }