Fix kern/6658 from Martin Husemann:

After booting a current kernel and receiving a few arp requests on the
network it panics (data modified on free list). The panic message is wrong,
as code inspection shows the memory pool for routing entries is intialized
twice, while the routing timer memory pool is never initialized.
This commit is contained in:
veego 1998-12-27 11:44:41 +00:00
parent ba3bedf25e
commit 50cc03465e
1 changed files with 2 additions and 2 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: route.c,v 1.22 1998/12/22 02:27:06 thorpej Exp $ */
/* $NetBSD: route.c,v 1.23 1998/12/27 11:44:41 veego Exp $ */
/*-
* Copyright (c) 1998 The NetBSD Foundation, Inc.
@ -622,7 +622,7 @@ rt_timer_init()
{
assert(rt_init_done == 0);
pool_init(&rtentry_pool, sizeof(struct rttimer), 0, 0, 0, "rttmrpl",
pool_init(&rttimer_pool, sizeof(struct rttimer), 0, 0, 0, "rttmrpl",
0, NULL, NULL, M_RTABLE);
LIST_INIT(&rttimer_queue_head);