diff options
author | sam <sam@FreeBSD.org> | 2003-01-06 18:52:05 +0000 |
---|---|---|
committer | sam <sam@FreeBSD.org> | 2003-01-06 18:52:05 +0000 |
commit | 380f542199a6c4346800eeb7540b39485752f2c0 (patch) | |
tree | a49299c56cd596541ad23dffadc1afbc9e4727bc /sys | |
parent | 3b775624bb3d9ac2063b2c5d1f471781f8840cda (diff) | |
download | FreeBSD-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')
-rw-r--r-- | sys/opencrypto/crypto.c | 4 |
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; |