summaryrefslogtreecommitdiffstats
path: root/sys/opencrypto/crypto.c
diff options
context:
space:
mode:
authorsam <sam@FreeBSD.org>2003-01-06 18:52:05 +0000
committersam <sam@FreeBSD.org>2003-01-06 18:52:05 +0000
commit380f542199a6c4346800eeb7540b39485752f2c0 (patch)
treea49299c56cd596541ad23dffadc1afbc9e4727bc /sys/opencrypto/crypto.c
parent3b775624bb3d9ac2063b2c5d1f471781f8840cda (diff)
downloadFreeBSD-src-380f542199a6c4346800eeb7540b39485752f2c0.zip
FreeBSD-src-380f542199a6c4346800eeb7540b39485752f2c0.tar.gz
correct flags passed when allocation crypto request structures so we
don't block and the returned data is zero'd
Diffstat (limited to 'sys/opencrypto/crypto.c')
-rw-r--r--sys/opencrypto/crypto.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/opencrypto/crypto.c b/sys/opencrypto/crypto.c
index fd3fd85..9bf28b7 100644
--- a/sys/opencrypto/crypto.c
+++ b/sys/opencrypto/crypto.c
@@ -864,10 +864,10 @@ crypto_getreq(int num)
struct cryptodesc *crd;
struct cryptop *crp;
- crp = uma_zalloc(cryptop_zone, 0);
+ crp = uma_zalloc(cryptop_zone, M_NOWAIT|M_ZERO);
if (crp != NULL) {
while (num--) {
- crd = uma_zalloc(cryptodesc_zone, 0);
+ crd = uma_zalloc(cryptodesc_zone, M_NOWAIT|M_ZERO);
if (crd == NULL) {
crypto_freereq(crp);
return NULL;
OpenPOWER on IntegriCloud