git: kernel - Fix linux_idr.c

Matthew Dillon dillon at
Sun Nov 7 00:03:50 PDT 2021

commit d5be22e8fd9a74a56c14af59d0e36b9f979b500d
Author: Matthew Dillon <dillon at>
Date:   Sat Nov 6 23:59:46 2021 -0700

    kernel - Fix linux_idr.c
    * Fix the linux compat IDR code.  Fixes an endless grow loop that
      panics the system.  lim is set to end - 1 and prevented the
      find loop from succeeding.  In addition, we want to distinguish
      between the find loop hitting the limit and the find loop not
      finding anything, so pass INT_MAX as the limit so the later limit
      check can distinguish the two cases.
    In-conversation-with: hjarvard

Summary of changes:
 sys/libkern/linux_idr.c | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

DragonFly BSD source repository

More information about the Commits mailing list