Subject: CVS commit: src/sys/net
To: None <source-changes@NetBSD.org>
From: David Young <dyoung@netbsd.org>
List: source-changes
Date: 04/14/2007 22:41:42
Module Name:	src
Committed By:	dyoung
Date:		Sat Apr 14 22:41:42 UTC 2007

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

Log Message:
In gre_clone_destroy(), free the route cache after calling if_detach(),
because if_detach() may cause us to transmit a packet, which
ordinarily entails reloading the route cache.  This fixes a bug
where the kernel would panic later in rtflush().  Thanks Michael
Earnhart for reporting the bug.

In gre_output(), do not leak mbufs.


To generate a diff of this commit:
cvs rdiff -r1.90 -r1.91 src/sys/net/if_gre.c

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