]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
crypto: Cleanup mtx_init() calls.
authorJohn Baldwin <jhb@FreeBSD.org>
Tue, 2 Nov 2021 18:27:20 +0000 (11:27 -0700)
committerJohn Baldwin <jhb@FreeBSD.org>
Tue, 23 Nov 2021 23:11:49 +0000 (15:11 -0800)
commitaa7aa23171c86d0f05a90cef646ae6d1a3d1200e
treeb6aba2af3646ac99603fcef40d531cde796e1e18
parent351541661ce00f78873e693331433f48c6161ee0
crypto: Cleanup mtx_init() calls.

Don't pass the same name to multiple mutexes while using unique types
for WITNESS.  Just use the unique types as the mutex names.

Reviewed by: markj
Sponsored by: Chelsio Communications
Differential Revision: https://reviews.freebsd.org/D32740

(cherry picked from commit 4e057806cf56b238a0a3ef7af140f447d7b67ab5)
sys/opencrypto/crypto.c