Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F102666673
D36774.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
755 B
Referenced Files
None
Subscribers
None
D36774.diff
View Options
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
Details
Attached
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)
Attached To
Mode
D36774: crypto: move all zeroing into crypto_getreq
Attached
Detach File
Event Timeline
Log In to Comment