[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH qemu 0/7] Many improvements to HVF memory-related codes
From: |
Yan-Jie Wang |
Subject: |
Re: [PATCH qemu 0/7] Many improvements to HVF memory-related codes |
Date: |
Wed, 2 Mar 2022 09:07:28 +0800 |
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.