svn commit: r250441 - head/sys/dev/netmap
Luigi Rizzo
luigi at FreeBSD.org
Fri May 10 08:46:11 UTC 2013
Author: luigi
Date: Fri May 10 08:46:10 2013
New Revision: 250441
URL: http://svnweb.freebsd.org/changeset/base/250441
Log:
another minor bugfix in the memory allocator, this time in the free routine.
Modified:
head/sys/dev/netmap/netmap_mem2.c
Modified: head/sys/dev/netmap/netmap_mem2.c
==============================================================================
--- head/sys/dev/netmap/netmap_mem2.c Fri May 10 06:46:52 2013 (r250440)
+++ head/sys/dev/netmap/netmap_mem2.c Fri May 10 08:46:10 2013 (r250441)
@@ -381,7 +381,7 @@ netmap_obj_free_va(struct netmap_obj_poo
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;
More information about the svn-src-head
mailing list