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.


Enhancements to VNET and to halting:
[palacios.git] / palacios / src / devices / lnx_virtio_nic.c
index 92dee7e..5e7d4f2 100644 (file)
@@ -940,6 +940,13 @@ static int connect_fn(struct v3_vm_info * info,
     ops->config.poll = 1;
     ops->config.quote = 64;
     ops->config.fnt_mac = V3_Malloc(ETH_ALEN);  
+
+    if (!ops->config.fnt_mac) { 
+       PrintError("Cannot allocate in connect\n");
+       // should unregister here
+       return -1;
+    }
+
     memcpy(ops->config.fnt_mac, virtio->mac, ETH_ALEN);
 
     return 0;