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/amd64/amd64/bpf_jit_machdep.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sys/amd64/amd64/bpf_jit_machdep.c') diff --git a/sys/amd64/amd64/bpf_jit_machdep.c b/sys/amd64/amd64/bpf_jit_machdep.c index bc38abe..9c0c15b 100644 --- a/sys/amd64/amd64/bpf_jit_machdep.c +++ b/sys/amd64/amd64/bpf_jit_machdep.c @@ -105,7 +105,7 @@ bpf_jit_compile(struct bpf_insn *prog, u_int nins, int *mem) /* Allocate the reference table for the jumps */ stream.refs = (u_int *)malloc((nins + 1) * sizeof(u_int), - M_BPFJIT, M_WAITOK); + M_BPFJIT, M_NOWAIT); if (stream.refs == NULL) return NULL; @@ -459,7 +459,7 @@ bpf_jit_compile(struct bpf_insn *prog, u_int nins, int *mem) if (pass == 2) break; - stream.ibuf = (char *)malloc(stream.cur_ip, M_BPFJIT, M_WAITOK); + stream.ibuf = (char *)malloc(stream.cur_ip, M_BPFJIT, M_NOWAIT); if (stream.ibuf == NULL) { free(stream.refs, M_BPFJIT); return NULL; -- cgit v1.1