Page MenuHomeFreeBSD

D36774.diff
No OneTemporary

D36774.diff

diff --git a/sys/opencrypto/crypto.c b/sys/opencrypto/crypto.c
--- a/sys/opencrypto/crypto.c
+++ b/sys/opencrypto/crypto.c
@@ -1633,17 +1633,11 @@
uma_zfree(cryptop_zone, crp);
}
-static void
-_crypto_initreq(struct cryptop *crp, crypto_session_t cses)
-{
- crp->crp_session = cses;
-}
-
void
crypto_initreq(struct cryptop *crp, crypto_session_t cses)
{
memset(crp, 0, sizeof(*crp));
- _crypto_initreq(crp, cses);
+ crp->crp_session = cses;
}
struct cryptop *
@@ -1652,9 +1646,9 @@
struct cryptop *crp;
MPASS(how == M_WAITOK || how == M_NOWAIT);
- crp = uma_zalloc(cryptop_zone, how | M_ZERO);
+ crp = uma_zalloc(cryptop_zone, how);
if (crp != NULL)
- _crypto_initreq(crp, cses);
+ crypto_initreq(crp, cses);
return (crp);
}

File Metadata

Mime Type
text/plain
Expires
Sat, Nov 16, 2:17 PM (21 h, 20 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
14659897
Default Alt Text
D36774.diff (755 B)

Event Timeline