X-Git-Url: http://v3vee.org/palacios/gitweb/gitweb.cgi?a=blobdiff_plain;f=linux_usr%2Fv3_user_host_dev.c;h=6996bfada4caba8c59847404113b51b3f7ef9689;hb=ae06bda339f919423d0a2291759850dcee3f85da;hp=709db76e9cbaa499631da90cdfb0319574ae763a;hpb=3265327285cf9896276ddf7fab7cbe0d3060bd10;p=palacios.git diff --git a/linux_usr/v3_user_host_dev.c b/linux_usr/v3_user_host_dev.c index 709db76..6996bfa 100644 --- a/linux_usr/v3_user_host_dev.c +++ b/linux_usr/v3_user_host_dev.c @@ -55,7 +55,11 @@ int v3_user_host_dev_pull_request(int devfd, struct palacios_host_dev_host_reque return -1; } else { struct palacios_host_dev_host_request_response *r = malloc(len); - + + if (!r) { + return -1; + } + rc=ioctl(devfd, V3_HOST_DEV_HOST_REQUEST_PULL_IOCTL,r); if (rc<=0) {