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.


Lots of pedantic error checking in Palacios proper, especially for memory
[palacios.git] / palacios / src / extensions / ext_mtrr.c
index 7ff0dc0..1f22345 100644 (file)
@@ -544,6 +544,13 @@ static int init_mtrrs(struct v3_vm_info * vm, v3_cfg_tree_t * cfg, void ** priv_
     int ret = 0;
 
     state = V3_Malloc(sizeof(struct mtrr_state));
+
+    if (!state) {
+       PrintError("Cannot allocate in initializing MTRRs\n");
+       return -1;
+    }
+
+
     memset(state, 0, sizeof(struct mtrr_state));
 
     *priv_data = state;