Palacios Public Git Repository

To checkout Palacios execute

  git clone http://v3vee.org/palacios/palacios.web/palacios.git
This will give you the master branch. You probably want the devel branch or one of the release branches. To switch to the devel branch, simply execute
  cd palacios
  git checkout --track -b devel origin/devel
The other branches are similar.


Fixed binding error in graphics console for new extension interface
[palacios.git] / linux_module / palacios-host-dev.c
index e560889..927b5ad 100644 (file)
@@ -1328,6 +1328,11 @@ static int host_dev_init( void ) {
 
 static int host_dev_guest_init(struct v3_guest * guest, void ** vm_data ) {
     struct palacios_host_dev * host_dev = kmalloc(sizeof(struct palacios_host_dev), GFP_KERNEL);
+
+    if (!host_dev) { 
+       ERROR("palacios: failed to do guest_init for host device\n");
+       return -1;
+    }
     
     
     INIT_LIST_HEAD(&(host_dev->devs));