X-Git-Url: http://v3vee.org/palacios/gitweb/gitweb.cgi?a=blobdiff_plain;f=palacios%2Fsrc%2Finterfaces%2Fvmm_host_hypercall.c;h=ab57698b104006ea7dd7d57f892d49fde4020872;hb=e3b62e7befa086a4fb320890952f54667ee46329;hp=0299268f62928883ee1ee93acb677efe47165103;hpb=d6a4d7bf28c8962ad6a1499d0b74b9e5cdf892ad;p=palacios.git diff --git a/palacios/src/interfaces/vmm_host_hypercall.c b/palacios/src/interfaces/vmm_host_hypercall.c index 0299268..ab57698 100644 --- a/palacios/src/interfaces/vmm_host_hypercall.c +++ b/palacios/src/interfaces/vmm_host_hypercall.c @@ -142,7 +142,8 @@ int v3_register_host_hypercall(host_vm_info_t * vm, struct bounce_data *b = V3_Malloc(sizeof(struct bounce_data)); if (!b) { - return -1; + PrintError("Unable to allocate in registering host hypercall\n"); + return -1; } b->hypercall=hypercall; @@ -152,7 +153,9 @@ int v3_register_host_hypercall(host_vm_info_t * vm, hypercall_id, bounce, b) < 0) { - return -1; + PrintError("Cannot register host hypercall\n"); + V3_Free(b); + return -1; } return 0;