diff options
author | luigi <luigi@FreeBSD.org> | 2013-05-10 08:46:10 +0000 |
---|---|---|
committer | luigi <luigi@FreeBSD.org> | 2013-05-10 08:46:10 +0000 |
commit | 705957e6ae8d9f478340056399415edf4c932023 (patch) | |
tree | 00cb005050d6b6e0c5089eb28c3ae0eabf12dd08 | |
parent | 7b9333cf715d9b9e83c0781ce8d086f60ae8a8d1 (diff) | |
download | FreeBSD-src-705957e6ae8d9f478340056399415edf4c932023.zip FreeBSD-src-705957e6ae8d9f478340056399415edf4c932023.tar.gz |
another minor bugfix in the memory allocator, this time in the free routine.
-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; |