CVS commit: src/sys/opencrypto

"Taylor R Campbell" <[email protected]>
Newsgroups gmane.os.netbsd.devel.cvs
Message-ID <[email protected]>
Module Name:	src
Committed By:	riastradh
Date:		Tue May 19 15:58:12 UTC 2026

Modified Files:
	src/sys/opencrypto: cryptodev.c

Log Message:
crypto(4): Take reference _before_ releasing the lock.

Otherwise nothing ensures the object will still exist by the time we
try to take the reference.

Also guard against too many references, since this is only a 32-bit
reference count.

PR kern/60281: crypto(4): bugs in reference counting and test


To generate a diff of this commit:
cvs rdiff -u -r1.128 -r1.129 src/sys/opencrypto/cryptodev.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.