diff options
author | Gleydson Soares <gsoares@cvs.openbsd.org> | 2012-12-28 17:52:07 +0000 |
---|---|---|
committer | Gleydson Soares <gsoares@cvs.openbsd.org> | 2012-12-28 17:52:07 +0000 |
commit | e84d23b44e4b046fd8383e3aba883ebb280603f2 (patch) | |
tree | 978bc9237161622d7a018ca3912341efce929ecc /sys/net/bpf.c | |
parent | f7544cb61de7d175e1e2ec4a9c08884f9f86c8a8 (diff) |
change the malloc(9) flags from M_DONTWAIT to M_NOWAIT; OK millert@
Diffstat (limited to 'sys/net/bpf.c')
-rw-r--r-- | sys/net/bpf.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/net/bpf.c b/sys/net/bpf.c index bb54caeba18..e01f3faf08d 100644 --- a/sys/net/bpf.c +++ b/sys/net/bpf.c @@ -1,4 +1,4 @@ -/* $OpenBSD: bpf.c,v 1.82 2012/12/21 11:17:22 mikeb Exp $ */ +/* $OpenBSD: bpf.c,v 1.83 2012/12/28 17:52:06 gsoares Exp $ */ /* $NetBSD: bpf.c,v 1.33 1997/02/21 23:59:35 thorpej Exp $ */ /* @@ -1482,7 +1482,7 @@ void bpfattach(caddr_t *driverp, struct ifnet *ifp, u_int dlt, u_int hdrlen) { struct bpf_if *bp; - bp = (struct bpf_if *)malloc(sizeof(*bp), M_DEVBUF, M_DONTWAIT); + bp = (struct bpf_if *)malloc(sizeof(*bp), M_DEVBUF, M_NOWAIT); if (bp == 0) panic("bpfattach"); |