summaryrefslogtreecommitdiffstats
path: root/sys/netatm
diff options
context:
space:
mode:
authorarr <arr@FreeBSD.org>2002-06-17 05:57:37 +0000
committerarr <arr@FreeBSD.org>2002-06-17 05:57:37 +0000
commit873ec67f047583add6c6a64417363b0424960ca6 (patch)
tree18db38c36463e3d568c85da77b56799090d14780 /sys/netatm
parent8301b3a03ba63822f37fcac7a148954a93c98ba3 (diff)
downloadFreeBSD-src-873ec67f047583add6c6a64417363b0424960ca6.zip
FreeBSD-src-873ec67f047583add6c6a64417363b0424960ca6.tar.gz
- Explicitly pass M_WAITOK in a few calls to uma_zalloc(9).
Diffstat (limited to 'sys/netatm')
-rw-r--r--sys/netatm/atm_cm.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/sys/netatm/atm_cm.c b/sys/netatm/atm_cm.c
index c1bf85e..0760dba 100644
--- a/sys/netatm/atm_cm.c
+++ b/sys/netatm/atm_cm.c
@@ -174,7 +174,7 @@ atm_cm_connect(epp, token, ap, copp)
/*
* Get a connection block
*/
- cop = uma_zalloc(atm_connection_zone, 0);
+ cop = uma_zalloc(atm_connection_zone, M_WAITOK);
if (cop == NULL)
return (ENOMEM);
@@ -405,7 +405,7 @@ atm_cm_connect(epp, token, ap, copp)
/*
* Get a connection VCC block
*/
- cvp = uma_zalloc(atm_connvc_zone, 0);
+ cvp = uma_zalloc(atm_connvc_zone, M_WAITOK);
if (cvp == NULL) {
err = ENOMEM;
goto donex;
@@ -551,7 +551,7 @@ atm_cm_listen(epp, token, ap, copp)
/*
* Get a connection block
*/
- cop = uma_zalloc(atm_connection_zone, 0);
+ cop = uma_zalloc(atm_connection_zone, M_WAITOK);
if (cop == NULL)
return (ENOMEM);
@@ -710,7 +710,7 @@ atm_cm_listen(epp, token, ap, copp)
/*
* Get an attribute block and save listening attributes
*/
- cop->co_lattr = uma_zalloc(atm_attributes_zone, M_ZERO);
+ cop->co_lattr = uma_zalloc(atm_attributes_zone, M_WAITOK | M_ZERO);
if (cop->co_lattr == NULL) {
err = ENOMEM;
goto done;
@@ -815,7 +815,7 @@ atm_cm_addllc(epp, token, llc, ecop, copp)
/*
* Get a connection block
*/
- cop = uma_zalloc(atm_connection_zone, 0);
+ cop = uma_zalloc(atm_connection_zone, M_WAITOK);
if (cop == NULL)
return (ENOMEM);
@@ -1266,7 +1266,7 @@ atm_cm_incoming(vcp, ap)
/*
* Get a connection VCC block
*/
- cvp = uma_zalloc(atm_connvc_zone, 0);
+ cvp = uma_zalloc(atm_connvc_zone, M_WAITOK);
if (cvp == NULL) {
err = ENOMEM;
goto fail;
@@ -1588,7 +1588,7 @@ atm_cm_incall(cvp)
/*
* Need a new connection block
*/
- cop = uma_zalloc(atm_connection_zone, 0);
+ cop = uma_zalloc(atm_connection_zone, M_WAITOK);
if (cop == NULL) {
cvp->cvc_attr.cause = atm_cause_tmpl;
cvp->cvc_attr.cause.v.cause_value =
OpenPOWER on IntegriCloud