diff options
-rw-r--r-- | sys/dev/netmap/netmap_mem2.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/netmap/netmap_mem2.c b/sys/dev/netmap/netmap_mem2.c index 68bf8db..dcf4b06 100644 --- a/sys/dev/netmap/netmap_mem2.c +++ b/sys/dev/netmap/netmap_mem2.c @@ -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; |