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.


Extensive, Pedantic Error Checking in Linux module, especially for memory
[palacios.git] / linux_module / linux-exts.c
index e227107..089e67e 100644 (file)
@@ -47,7 +47,7 @@ int init_vm_extensions(struct v3_guest * guest) {
        
        INFO("Registering Linux Extension (%s)\n", ext_impl->name);
 
-       ext = kmalloc(sizeof(struct vm_ext), GFP_KERNEL);
+       ext = palacios_alloc(sizeof(struct vm_ext));
        
        if (!ext) {
            WARNING("Error allocating VM extension (%s)\n", ext_impl->name);
@@ -80,7 +80,7 @@ int deinit_vm_extensions(struct v3_guest * guest) {
        }
 
        list_del(&(ext->node));
-       kfree(ext);
+       palacios_free(ext);
     }
 
     return 0;