svn commit: r329555 - head/sys/compat/linuxkpi/common/src
Hans Petter Selasky
hselasky at FreeBSD.org
Mon Feb 19 06:11:59 UTC 2018
Author: hselasky
Date: Mon Feb 19 06:11:58 2018
New Revision: 329555
URL: https://svnweb.freebsd.org/changeset/base/329555
Log:
When stepping the radix tree in the LinuxKPI make sure we
clear the least significant bits, so that no entries are
skipped.
MFC after: 1 week
Sponsored by: Mellanox Technologies
Modified:
head/sys/compat/linuxkpi/common/src/linux_radix.c
Modified: head/sys/compat/linuxkpi/common/src/linux_radix.c
==============================================================================
--- head/sys/compat/linuxkpi/common/src/linux_radix.c Mon Feb 19 05:10:22 2018 (r329554)
+++ head/sys/compat/linuxkpi/common/src/linux_radix.c Mon Feb 19 06:11:58 2018 (r329555)
@@ -103,6 +103,7 @@ restart:
next = node->slots[pos];
if (next == NULL) {
index += step;
+ index &= -step;
if ((index & mask) == 0)
goto restart;
} else {
More information about the svn-src-all
mailing list