X-Git-Url: http://v3vee.org/palacios/gitweb/gitweb.cgi?a=blobdiff_plain;f=palacios%2Fsrc%2Fpalacios%2Fvmm_events.c;h=c4580eea40276686f1b20240b9793bae755899bb;hb=c17cafcb6db943bd5bbb31d86f0392c113b2d668;hp=535db0932aacccce26a331babe85db2d76de5e3e;hpb=acaadd79c597c8d5180fbfbec79c01fef3dff003;p=palacios.git diff --git a/palacios/src/palacios/vmm_events.c b/palacios/src/palacios/vmm_events.c index 535db09..c4580ee 100644 --- a/palacios/src/palacios/vmm_events.c +++ b/palacios/src/palacios/vmm_events.c @@ -28,7 +28,7 @@ int v3_init_events(struct v3_vm_info * vm) { struct v3_event_map * map = &(vm->event_map); int i = 0; - map->events = V3_Malloc(sizeof(struct list_head) * V3_EVENT_INVALID); + map->events = V3_Malloc(sizeof(struct list_head) * (V3_EVENT_INVALID+1)); if (map->events == NULL) { PrintError(vm, VCORE_NONE, "Error: could not allocate event map\n");