git: kernel - Fix linux_idr.c

Matthew Dillon dillon at crater.dragonflybsd.org
Sun Nov 7 00:03:50 PDT 2021


commit d5be22e8fd9a74a56c14af59d0e36b9f979b500d
Author: Matthew Dillon <dillon at apollo.backplane.com>
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(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/d5be22e8fd9a74a56c14af59d0e36b9f979b500d


-- 
DragonFly BSD source repository


More information about the Commits mailing list