Sorry, I made a mistake. The last line in the function, hvf_find_free_slot, introduced in this commit "hvf: simplify data structures and codes of memory related functions" should be "return NULL;"
static hvf_slot *hvf_find_free_slot(void) { hvf_slot *slot; int x; for (x = 0; x < HVF_NUM_SLOTS; x++) { slot = &memslots[x]; if (!slot->size) { return slot; } } return NULL; // <---- This line is changed } I will submit a new version of the patch series after I go home.