]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Clean up crypto_init().
authormarkj <markj@FreeBSD.org>
Fri, 17 Jul 2020 14:45:16 +0000 (14:45 +0000)
committermarkj <markj@FreeBSD.org>
Fri, 17 Jul 2020 14:45:16 +0000 (14:45 +0000)
commit2486ff6690a74dceac5f7a2fd9c20c8a5da1c054
tree0c0ef93a78f2bc28d62c9ad5d91bfe1d890bb366
parente5f072b02ad170f6fb32f6ce94d302b75202ed24
Clean up crypto_init().

The function is called from a KLD load handler, so it may sleep.

- Stop checking for errors from uma_zcreate(), they don't happen.
- Convert M_NOWAIT allocations to M_WAITOK.
- Remove error handling for existing M_WAITOK allocations.
- Fix style.

Reviewed by: cem, delphij, jhb
MFC after: 1 week
Differential Revision: https://reviews.freebsd.org/D25696
sys/opencrypto/crypto.c