Source-Changes-HG archive

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

[src/netbsd-1-6]: src/sys/net Apply patch (requested by itojun in ticket #1325):



details:   https://anonhg.NetBSD.org/src/rev/dc2d7e838dac
branches:  netbsd-1-6
changeset: 530415:dc2d7e838dac
user:      grant <grant%NetBSD.org@localhost>
date:      Tue Jun 24 08:17:22 2003 +0000

description:
Apply patch (requested by itojun in ticket #1325):

don't call if_free_sadl() until very end of if_detach() logic.  many of
routing table manipulation code assumes the presense of AF_LINK sockaddr.
should fix PR 21581

diffstat:

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

diffs (28 lines):

diff -r e775d8ecc0d8 -r dc2d7e838dac sys/net/if_ethersubr.c
--- a/sys/net/if_ethersubr.c    Fri Jun 20 10:39:45 2003 +0000
+++ b/sys/net/if_ethersubr.c    Tue Jun 24 08:17:22 2003 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: if_ethersubr.c,v 1.95.2.3 2003/06/02 14:49:47 tron Exp $       */
+/*     $NetBSD: if_ethersubr.c,v 1.95.2.4 2003/06/24 08:17:22 grant Exp $      */
 
 /*
  * Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project.
@@ -65,7 +65,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_ethersubr.c,v 1.95.2.3 2003/06/02 14:49:47 tron Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_ethersubr.c,v 1.95.2.4 2003/06/24 08:17:22 grant Exp $");
 
 #include "opt_inet.h"
 #include "opt_atalk.h"
@@ -1104,7 +1104,9 @@
        }
        splx(s);
 
+#if 0  /* done in if_detach() */
        if_free_sadl(ifp);
+#endif
 }
 
 #if 0



Home | Main Index | Thread Index | Old Index