Date: Mon, 19 Feb 2018 06:11:58 +0000 (UTC) From: Hans Petter Selasky <hselasky@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r329555 - head/sys/compat/linuxkpi/common/src Message-ID: <201802190611.w1J6Bwaq057432@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
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 {
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201802190611.w1J6Bwaq057432>