Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/net mbuf should be allocated with M_DONTWAIT in ether_ou...



details:   https://anonhg.NetBSD.org/src/rev/b07751f9bbe3
branches:  trunk
changeset: 473736:b07751f9bbe3
user:      bouyer <bouyer%NetBSD.org@localhost>
date:      Thu Jun 17 17:27:13 1999 +0000

description:
mbuf should be allocated with M_DONTWAIT in ether_output(). This caused panics
when routing atalk.

diffstat:

 sys/net/if_ethersubr.c |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r a43379caae31 -r b07751f9bbe3 sys/net/if_ethersubr.c
--- a/sys/net/if_ethersubr.c    Thu Jun 17 15:47:22 1999 +0000
+++ b/sys/net/if_ethersubr.c    Thu Jun 17 17:27:13 1999 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: if_ethersubr.c,v 1.42 1999/05/18 23:57:20 thorpej Exp $        */
+/*     $NetBSD: if_ethersubr.c,v 1.43 1999/06/17 17:27:13 bouyer Exp $ */
 
 /*
  * Copyright (c) 1982, 1989, 1993
@@ -249,7 +249,7 @@
                if (aa->aa_flags & AFA_PHASE2) {
                        struct llc llc;
 
-                       M_PREPEND(m, sizeof(struct llc), M_WAIT);
+                       M_PREPEND(m, sizeof(struct llc), M_DONTWAIT);
                        llc.llc_dsap = llc.llc_ssap = LLC_SNAP_LSAP;
                        llc.llc_control = LLC_UI;
                        bcopy(at_org_code, llc.llc_snap_org_code,



Home | Main Index | Thread Index | Old Index