hw/rdma: Do not use bitmap_zero_extend to free bitmap
bitmap_zero_extend is designed to work for extending, not for shrinking. Using g_free instead. Signed-off-by: Yuval Shaia <yuval.shaia@oracle.com> Reviewed-by: Marcel Apfelbaum <marcel.apfelbaum@gmail.com> Signed-off-by: Marcel Apfelbaum <marcel.apfelbaum@gmail.com>
This commit is contained in:
parent
ffa65d97fc
commit
9a3053d2e8
@ -43,7 +43,7 @@ static inline void res_tbl_free(RdmaRmResTbl *tbl)
|
||||
{
|
||||
qemu_mutex_destroy(&tbl->lock);
|
||||
g_free(tbl->tbl);
|
||||
bitmap_zero_extend(tbl->bitmap, tbl->tbl_sz, 0);
|
||||
g_free(tbl->bitmap);
|
||||
}
|
||||
|
||||
static inline void *res_tbl_get(RdmaRmResTbl *tbl, uint32_t handle)
|
||||
|
Loading…
Reference in New Issue
Block a user