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 { _______________________________________________ svn-src-head@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/svn-src-head To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"