diff options
| author | Bosko Milekic <bmilekic@FreeBSD.org> | 2000-12-27 22:20:13 +0000 |
|---|---|---|
| committer | Bosko Milekic <bmilekic@FreeBSD.org> | 2000-12-27 22:20:13 +0000 |
| commit | e3b4e866a5e313a2e6c904d6cf67d5c9058df69a (patch) | |
| tree | b29f0015f5785071e887a5b18eca0487e112cbf1 /sys | |
| parent | dab777beb893004162731019a4f17e815c0228cd (diff) | |
Notes
Diffstat (limited to 'sys')
| -rw-r--r-- | sys/net/bpf.c | 2 | ||||
| -rw-r--r-- | sys/net/bpf_compat.h | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/sys/net/bpf.c b/sys/net/bpf.c index 21eeff350047..6487a8257a7f 100644 --- a/sys/net/bpf.c +++ b/sys/net/bpf.c @@ -1289,7 +1289,7 @@ bpfattach(ifp, dlt, hdrlen) u_int dlt, hdrlen; { struct bpf_if *bp; - bp = (struct bpf_if *)malloc(sizeof(*bp), M_BPF, M_DONTWAIT); + bp = (struct bpf_if *)malloc(sizeof(*bp), M_BPF, M_NOWAIT); if (bp == 0) panic("bpfattach"); diff --git a/sys/net/bpf_compat.h b/sys/net/bpf_compat.h index 8ccaa23bdff7..cac9affb79ca 100644 --- a/sys/net/bpf_compat.h +++ b/sys/net/bpf_compat.h @@ -47,6 +47,7 @@ #define malloc(size, type, canwait) bpf_alloc(size, canwait) #define free(cp, type) m_free(*(struct mbuf **)(cp - 8)) #define M_WAITOK M_TRYWAIT +#define M_NOWAIT M_DONTWAIT /* This mapping works for our purposes. */ #define ERESTART EINTR |
