aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/wb/if_wb.c
diff options
context:
space:
mode:
authorGleb Smirnoff <glebius@FreeBSD.org>2012-12-04 09:32:43 +0000
committerGleb Smirnoff <glebius@FreeBSD.org>2012-12-04 09:32:43 +0000
commitc6499eccad497913a5025fbde8ae76da70e08043 (patch)
tree30c414dead3eba042cad7b6cbb32d1c9cba96149 /sys/dev/wb/if_wb.c
parent8ca5c3fae7d077e4e6460a251160585709f6e37e (diff)
downloadsrc-c6499eccad497913a5025fbde8ae76da70e08043.tar.gz
src-c6499eccad497913a5025fbde8ae76da70e08043.zip
Mechanically substitute flags from historic mbuf allocator with
malloc(9) flags in sys/dev.
Notes
Notes: svn path=/head/; revision=243857
Diffstat (limited to 'sys/dev/wb/if_wb.c')
-rw-r--r--sys/dev/wb/if_wb.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/wb/if_wb.c b/sys/dev/wb/if_wb.c
index 0d0dd5599746..8bc28eabcf01 100644
--- a/sys/dev/wb/if_wb.c
+++ b/sys/dev/wb/if_wb.c
@@ -842,7 +842,7 @@ wb_newbuf(sc, c, m)
struct mbuf *m_new = NULL;
if (m == NULL) {
- MGETHDR(m_new, M_DONTWAIT, MT_DATA);
+ MGETHDR(m_new, M_NOWAIT, MT_DATA);
if (m_new == NULL)
return(ENOBUFS);
m_new->m_data = c->wb_buf;
@@ -1192,11 +1192,11 @@ wb_encap(sc, c, m_head)
if (m != NULL) {
struct mbuf *m_new = NULL;
- MGETHDR(m_new, M_DONTWAIT, MT_DATA);
+ MGETHDR(m_new, M_NOWAIT, MT_DATA);
if (m_new == NULL)
return(1);
if (m_head->m_pkthdr.len > MHLEN) {
- MCLGET(m_new, M_DONTWAIT);
+ MCLGET(m_new, M_NOWAIT);
if (!(m_new->m_flags & M_EXT)) {
m_freem(m_new);
return(1);