correct flags passed when allocation crypto request structures so we
don't block and the returned data is zero'd
This commit is contained in:
parent
6f50d8cc12
commit
bc0c6d3c99
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=108813
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user