summaryrefslogtreecommitdiffstats
path: root/sys/opencrypto/crypto.c
diff options
context:
space:
mode:
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