NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

PR/57666 CVS commit: src/sys/kern



The following reply was made to PR kern/57666; it has been noted by GNATS.

From: "Taylor R Campbell" <riastradh%netbsd.org@localhost>
To: gnats-bugs%gnats.NetBSD.org@localhost
Cc: 
Subject: PR/57666 CVS commit: src/sys/kern
Date: Tue, 17 Oct 2023 11:55:28 +0000

 Module Name:	src
 Committed By:	riastradh
 Date:		Tue Oct 17 11:55:28 UTC 2023
 
 Modified Files:
 	src/sys/kern: subr_thmap.c
 
 Log Message:
 thmap(9): Test alloc failure, not THMAP_GETPTR failure.
 
 THMAP_GETPTR may return nonnull even though alloc returned zero.
 
 Note that this failure branch is not actually appropriate;
 thmap_create should not fail.  We really need to pass KM_SLEEP
 through in this call site even though there are other call sites for
 which KM_NOSLEEP is appropriate.
 
 Adapted from: https://github.com/rmind/thmap/pull/14
 
 PR kern/57666
 https://github.com/rmind/thmap/issues/13
 
 XXX pullup-10
 XXX pullup-9
 
 
 To generate a diff of this commit:
 cvs rdiff -u -r1.13 -r1.14 src/sys/kern/subr_thmap.c
 
 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.
 


Home | Main Index | Thread Index | Old Index