summaryrefslogtreecommitdiff
path: root/sys/netinet6
diff options
context:
space:
mode:
authorJun-ichiro itojun Hagino <itojun@cvs.openbsd.org>2003-05-27 22:52:18 +0000
committerJun-ichiro itojun Hagino <itojun@cvs.openbsd.org>2003-05-27 22:52:18 +0000
commita024d638ff76863626d3d8ea492aa9b5e3885684 (patch)
tree04968a5854f3dccd5332bb3c8c02fe1e943b6176 /sys/netinet6
parentd3827fd51a2a81db3e3f075316f599167d1cea79 (diff)
don't use M_WAIT here. we could be in splnet, and caller may not be
xx_usrreq. henning ok
Diffstat (limited to 'sys/netinet6')
-rw-r--r--sys/netinet6/raw_ip6.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/sys/netinet6/raw_ip6.c b/sys/netinet6/raw_ip6.c
index 160b7707909..9580d1d463b 100644
--- a/sys/netinet6/raw_ip6.c
+++ b/sys/netinet6/raw_ip6.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: raw_ip6.c,v 1.17 2002/09/11 03:27:30 itojun Exp $ */
+/* $OpenBSD: raw_ip6.c,v 1.18 2003/05/27 22:52:17 itojun Exp $ */
/* $KAME: raw_ip6.c,v 1.69 2001/03/04 15:55:44 itojun Exp $ */
/*
@@ -418,7 +418,11 @@ rip6_output(struct mbuf *m, ...)
code = icmp6->icmp6_code;
}
- M_PREPEND(m, sizeof(*ip6), M_WAIT);
+ M_PREPEND(m, sizeof(*ip6), M_DONTWAIT);
+ if (!m) {
+ error = ENOBUFS;
+ goto bad;
+ }
ip6 = mtod(m, struct ip6_hdr *);
/*