summaryrefslogtreecommitdiff
path: root/sys/net
diff options
context:
space:
mode:
authorArtur Grabowski <art@cvs.openbsd.org>2001-10-03 11:34:39 +0000
committerArtur Grabowski <art@cvs.openbsd.org>2001-10-03 11:34:39 +0000
commit56f23d87cef7175dab4af2138cf33955af191eb6 (patch)
treeb74c531c933353594075920eaef8e027eacf8a2a /sys/net
parent4b748f790258b0a1bbed8a016ff5b5e31764245a (diff)
M_WAIT in ether_output is wrong. Fix APPLETALK stuff.
Diffstat (limited to 'sys/net')
-rw-r--r--sys/net/if_ethersubr.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/sys/net/if_ethersubr.c b/sys/net/if_ethersubr.c
index c3a3af7151d..c89d647fd23 100644
--- a/sys/net/if_ethersubr.c
+++ b/sys/net/if_ethersubr.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_ethersubr.c,v 1.57 2001/09/20 18:55:55 deraadt Exp $ */
+/* $OpenBSD: if_ethersubr.c,v 1.58 2001/10/03 11:34:38 art Exp $ */
/* $NetBSD: if_ethersubr.c,v 1.19 1996/05/07 02:40:30 thorpej Exp $ */
/*
@@ -382,11 +382,12 @@ ether_output(ifp, m0, dst, rt0)
* passed to us by value, we m_copy() the first mbuf,
* and use it for our llc header.
*/
- if ( aa->aa_flags & AFA_PHASE2 ) {
+ if (aa->aa_flags & AFA_PHASE2) {
struct llc llc;
- /* XXX Really this should use netisr too */
- M_PREPEND(m, AT_LLC_SIZE, M_WAIT);
+ M_PREPEND(m, AT_LLC_SIZE, M_DONTWAIT);
+ if (m == NULL)
+ return (0);
/*
* FreeBSD doesn't count the LLC len in
* ifp->obytes, so they increment a length