another minor bugfix in the memory allocator, this time in the free routine.
This commit is contained in:
parent
7b9333cf71
commit
705957e6ae
@ -381,7 +381,7 @@ netmap_obj_free_va(struct netmap_obj_pool *p, void *vaddr)
|
||||
ssize_t relofs = (ssize_t) vaddr - (ssize_t) base;
|
||||
|
||||
/* Given address, is out of the scope of the current cluster.*/
|
||||
if (vaddr < base || relofs > p->_clustsize)
|
||||
if (vaddr < base || relofs >= p->_clustsize)
|
||||
continue;
|
||||
|
||||
j = j + relofs / p->_objsize;
|
||||
|
Loading…
x
Reference in New Issue
Block a user