Subject: CVS commit: src/sys/net
To: None <source-changes@NetBSD.org>
From: David Young <dyoung@netbsd.org>
List: source-changes
Date: 12/08/2004 20:37:43
Module Name:	src
Committed By:	dyoung
Date:		Wed Dec  8 20:37:43 UTC 2004

Modified Files:
	src/sys/net: if_media.c

Log Message:
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.22 -r1.23 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.