kernel/atm: Fix wrong rt_tables[] access.
authorSascha Wildner <saw@online.de>
Mon, 17 Dec 2012 08:25:33 +0000 (09:25 +0100)
committerSascha Wildner <saw@online.de>
Mon, 17 Dec 2012 08:25:33 +0000 (09:25 +0100)
sys/conf/files
sys/netproto/atm/atm_if.c

index a73bcee..5ed5a97 100644 (file)
@@ -1136,7 +1136,7 @@ netproto/802_11/wlan_xauth/ieee80211_xauth.c optional wlan_xauth
 netproto/atm/atm_aal5.c                optional atm_core
 netproto/atm/atm_cm.c                  optional atm_core
 netproto/atm/atm_device.c              optional atm_core
-netproto/atm/atm_if.c                  optional nowerror atm_core
+netproto/atm/atm_if.c                  optional atm_core
 netproto/atm/atm_proto.c               optional atm_core
 netproto/atm/atm_signal.c              optional atm_core
 netproto/atm/atm_socket.c              optional atm_core
index 171d9ea..9a4f767 100644 (file)
@@ -24,7 +24,6 @@
  * notice must be reproduced on all copies.
  *
  *     @(#) $FreeBSD: src/sys/netatm/atm_if.c,v 1.5 1999/08/28 00:48:35 peter Exp $
- *     @(#) $DragonFly: src/sys/netproto/atm/atm_if.c,v 1.18 2008/06/08 08:38:05 sephe Exp $
  */
 
 /*
@@ -822,7 +821,7 @@ atm_nif_detach(struct atm_nif *nip)
         * to this interface...oh well...
         */
        for (i = 1; i <= AF_MAX; i++) {
-               if ((rnh = rt_tables[i]) == NULL)
+               if ((rnh = rt_tables[mycpuid][i]) == NULL)
                        continue;
                rnh->rnh_walktree(rnh, atm_netif_rtdel, ifp);
        }