From 9fbde6681e0fc0266c9ba6d99e20c203f57baefb Mon Sep 17 00:00:00 2001 From: jkim Date: Tue, 6 Dec 2005 07:22:01 +0000 Subject: s/M_WAITOK/M_NOWAIT/ while mutex is held. Pointed out by: csjp --- sys/net/bpf_jitter.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sys/net') diff --git a/sys/net/bpf_jitter.c b/sys/net/bpf_jitter.c index 26a57fc..2d0ee2e1 100644 --- a/sys/net/bpf_jitter.c +++ b/sys/net/bpf_jitter.c @@ -53,13 +53,13 @@ bpf_jitter(struct bpf_insn *fp, int nins) /* Allocate the filter structure */ filter = (struct bpf_jit_filter *)malloc(sizeof(struct bpf_jit_filter), - M_BPFJIT, M_WAITOK); + M_BPFJIT, M_NOWAIT); if (filter == NULL) return NULL; /* Allocate the filter's memory */ filter->mem = (int *)malloc(BPF_MEMWORDS * sizeof(int), - M_BPFJIT, M_WAITOK); + M_BPFJIT, M_NOWAIT); if (filter->mem == NULL) { free(filter, M_BPFJIT); return NULL; -- cgit v1.1