summaryrefslogtreecommitdiffstats
path: root/sys/netgraph/bluetooth/drivers/h4/ng_h4.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/netgraph/bluetooth/drivers/h4/ng_h4.c')
-rw-r--r--sys/netgraph/bluetooth/drivers/h4/ng_h4.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/netgraph/bluetooth/drivers/h4/ng_h4.c b/sys/netgraph/bluetooth/drivers/h4/ng_h4.c
index 650c6f4..d793c04 100644
--- a/sys/netgraph/bluetooth/drivers/h4/ng_h4.c
+++ b/sys/netgraph/bluetooth/drivers/h4/ng_h4.c
@@ -170,7 +170,7 @@ ng_h4_open(dev_t dev, struct tty *tp)
}
/* Initialize private struct */
- MALLOC(sc, ng_h4_info_p, sizeof(*sc), M_NETGRAPH_H4, M_WAITOK | M_ZERO);
+ MALLOC(sc, ng_h4_info_p, sizeof(*sc), M_NETGRAPH_H4, M_ZERO);
if (sc == NULL) {
error = ENOMEM;
goto out;
@@ -516,7 +516,7 @@ ng_h4_input(int c, struct tty *tp)
if (sc->hook != NULL && NG_HOOK_IS_VALID(sc->hook)) {
struct mbuf *m = NULL;
- MGETHDR(m, M_DONTWAIT, MT_DATA);
+ MGETHDR(m, M_NOWAIT, MT_DATA);
if (m != NULL) {
m->m_pkthdr.len = 0;
OpenPOWER on IntegriCloud