Subject: CVS commit: [netbsd-2] src/sys/net
To: None <source-changes@NetBSD.org>
From: Julian Coleman <jdc@netbsd.org>
List: source-changes
Date: 01/07/2005 15:27:00
Module Name:	src
Committed By:	jdc
Date:		Fri Jan  7 15:27:00 UTC 2005

Modified Files:
	src/sys/net [netbsd-2]: if_media.c

Log Message:
Pull up revision 1.23 (requested by dyoung in ticket #1030).

As pointed out by Greg Troxel, ifmedia_entrys were allocated with
malloc_type M_IFADDR and freed with malloc_type M_DEVBUF.  This
causes a panic(9) in DIAGNOSTIC kernels.  Add malloc_type M_IFMEDIA
and use it for both malloc'ing and free'ing ifmedia_entrys.


To generate a diff of this commit:
cvs rdiff -r1.21 -r1.21.4.1 src/sys/net/if_media.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.