another minor bugfix in the memory allocator, this time in the free routine.

This commit is contained in:
luigi 2013-05-10 08:46:10 +00:00
parent 7b9333cf71
commit 705957e6ae

View File

@ -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;