summaryrefslogtreecommitdiffstats
path: root/sys/net/if_gre.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/net/if_gre.c')
-rw-r--r--sys/net/if_gre.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/net/if_gre.c b/sys/net/if_gre.c
index 33a4eff..6585396 100644
--- a/sys/net/if_gre.c
+++ b/sys/net/if_gre.c
@@ -160,7 +160,7 @@ gre_clone_create(ifc, unit)
{
struct gre_softc *sc;
- sc = malloc(sizeof(struct gre_softc), M_GRE, 0);
+ sc = malloc(sizeof(struct gre_softc), M_GRE, M_WAITOK);
memset(sc, 0, sizeof(struct gre_softc));
sc->sc_if.if_name = GRENAME;
@@ -294,7 +294,7 @@ gre_output(struct ifnet *ifp, struct mbuf *m, struct sockaddr *dst,
if ((m->m_data - msiz) < m->m_pktdat) {
/* need new mbuf */
- MGETHDR(m0, M_NOWAIT, MT_HEADER);
+ MGETHDR(m0, M_DONTWAIT, MT_HEADER);
if (m0 == NULL) {
_IF_DROP(&ifp->if_snd);
m_freem(m);
@@ -348,7 +348,7 @@ gre_output(struct ifnet *ifp, struct mbuf *m, struct sockaddr *dst,
error = EAFNOSUPPORT;
goto end;
}
- M_PREPEND(m, sizeof(struct greip), M_NOWAIT);
+ M_PREPEND(m, sizeof(struct greip), M_DONTWAIT);
} else {
_IF_DROP(&ifp->if_snd);
m_freem(m);
OpenPOWER on IntegriCloud