summaryrefslogtreecommitdiffstats
path: root/sys/i4b
diff options
context:
space:
mode:
authorimp <imp@FreeBSD.org>2003-02-19 05:47:46 +0000
committerimp <imp@FreeBSD.org>2003-02-19 05:47:46 +0000
commitcf874b345d0f766fb64cf4737e1c85ccc78d2bee (patch)
tree9e20e320fe15ae4bf68f8335fcf9d3e71d3b3614 /sys/i4b
parentb72619cecb8265d3efb3781b0acff1380762c173 (diff)
downloadFreeBSD-src-cf874b345d0f766fb64cf4737e1c85ccc78d2bee.zip
FreeBSD-src-cf874b345d0f766fb64cf4737e1c85ccc78d2bee.tar.gz
Back out M_* changes, per decision of the TRB.
Approved by: trb
Diffstat (limited to 'sys/i4b')
-rw-r--r--sys/i4b/driver/i4b_ipr.c2
-rw-r--r--sys/i4b/layer1/ihfc/i4b_ihfc_l1if.c2
-rw-r--r--sys/i4b/layer2/i4b_mbuf.c8
-rw-r--r--sys/i4b/layer4/i4b_i4bdrv.c10
4 files changed, 11 insertions, 11 deletions
diff --git a/sys/i4b/driver/i4b_ipr.c b/sys/i4b/driver/i4b_ipr.c
index e35b4e5..33033d2 100644
--- a/sys/i4b/driver/i4b_ipr.c
+++ b/sys/i4b/driver/i4b_ipr.c
@@ -255,7 +255,7 @@ i4biprattach(void *dummy)
#ifdef IPR_VJ_USEBUFFER
if(!((sc->sc_cbuf =
- (u_char *)malloc(I4BIPRMAXMTU+128, M_DEVBUF, 0))))
+ (u_char *)malloc(I4BIPRMAXMTU+128, M_DEVBUF, M_WAITOK))))
{
panic("if_ipr.c, ipr_attach: VJ malloc failed");
}
diff --git a/sys/i4b/layer1/ihfc/i4b_ihfc_l1if.c b/sys/i4b/layer1/ihfc/i4b_ihfc_l1if.c
index ee698c7..c5c3d47 100644
--- a/sys/i4b/layer1/ihfc/i4b_ihfc_l1if.c
+++ b/sys/i4b/layer1/ihfc/i4b_ihfc_l1if.c
@@ -121,7 +121,7 @@ ihfc_ph_data_req(int unit, struct mbuf *m, int freeflag)
/* "Allow" I-frames (-hp) */
- if (freeflag == MBUF_DONTFREE) m = m_copypacket(m, M_NOWAIT);
+ if (freeflag == MBUF_DONTFREE) m = m_copypacket(m, M_DONTWAIT);
if (!_IF_QFULL(&S_IFQUEUE) && m)
{
diff --git a/sys/i4b/layer2/i4b_mbuf.c b/sys/i4b/layer2/i4b_mbuf.c
index c12a9ae..95f234c 100644
--- a/sys/i4b/layer2/i4b_mbuf.c
+++ b/sys/i4b/layer2/i4b_mbuf.c
@@ -78,7 +78,7 @@ i4b_Dgetmbuf(int len)
return(NULL);
}
- MGETHDR(m, M_NOWAIT, MT_I4B_D); /* get mbuf with pkthdr */
+ MGETHDR(m, M_DONTWAIT, MT_I4B_D); /* get mbuf with pkthdr */
/* did we actually get the mbuf ? */
@@ -94,7 +94,7 @@ i4b_Dgetmbuf(int len)
if(len >= MHLEN)
{
- MCLGET(m, M_NOWAIT);
+ MCLGET(m, M_DONTWAIT);
if(!(m->m_flags & M_EXT))
{
@@ -155,7 +155,7 @@ i4b_Bgetmbuf(int len)
return(NULL);
}
- MGETHDR(m, M_NOWAIT, MT_I4B_B); /* get mbuf with pkthdr */
+ MGETHDR(m, M_DONTWAIT, MT_I4B_B); /* get mbuf with pkthdr */
/* did we actually get the mbuf ? */
@@ -171,7 +171,7 @@ i4b_Bgetmbuf(int len)
if(len >= MHLEN)
{
- MCLGET(m, M_NOWAIT);
+ MCLGET(m, M_DONTWAIT);
if(!(m->m_flags & M_EXT))
{
diff --git a/sys/i4b/layer4/i4b_i4bdrv.c b/sys/i4b/layer4/i4b_i4bdrv.c
index 95afcc9..1dffc0f 100644
--- a/sys/i4b/layer4/i4b_i4bdrv.c
+++ b/sys/i4b/layer4/i4b_i4bdrv.c
@@ -646,10 +646,10 @@ i4bioctl(dev_t dev, u_long cmd, caddr_t data, int flag, struct thread *td)
}
prots = malloc(r->numprotos * sizeof(struct isdn_dr_prot),
- M_DEVBUF, 0);
+ M_DEVBUF, M_WAITOK);
prots2 = malloc(r->numprotos * sizeof(struct isdn_dr_prot),
- M_DEVBUF, 0);
+ M_DEVBUF, M_WAITOK);
if(!prots || !prots2)
{
@@ -661,7 +661,7 @@ i4bioctl(dev_t dev, u_long cmd, caddr_t data, int flag, struct thread *td)
for(i = 0; i < r->numprotos; i++)
{
- prots2[i].microcode = malloc(prots[i].bytecount, M_DEVBUF, 0);
+ prots2[i].microcode = malloc(prots[i].bytecount, M_DEVBUF, M_WAITOK);
copyin(prots[i].microcode, prots2[i].microcode, prots[i].bytecount);
prots2[i].bytecount = prots[i].bytecount;
}
@@ -721,7 +721,7 @@ download_done:
goto diag_done;
}
- req.in_param = malloc(r->in_param_len, M_DEVBUF, 0);
+ req.in_param = malloc(r->in_param_len, M_DEVBUF, M_WAITOK);
if(!req.in_param)
{
@@ -735,7 +735,7 @@ download_done:
if(req.out_param_len)
{
- req.out_param = malloc(r->out_param_len, M_DEVBUF, 0);
+ req.out_param = malloc(r->out_param_len, M_DEVBUF, M_WAITOK);
if(!req.out_param)
{
OpenPOWER on IntegriCloud