Re: panic: ifc_free_unit: bit is already cleared

From: Pawel Jakub Dawidek <pjd_at_FreeBSD.org>
Date: Wed, 5 Oct 2005 22:36:39 +0200
On Wed, Oct 05, 2005 at 03:49:03PM +1300, Andrew Thompson wrote:
+> Hi,
+> 
+> I have found a repeatable panic with network device cloning, unfortunatly I am
+> unable to dump on this box. This is sparc64 with a 2 day old current.

The order is wrong in vlan_modevent().

if_clone_detach() is freeing ifc_units field, so ifc_free_unit() should not
be called after that.

This patch should fix the problem:

	http://people.freebsd.org/~pjd/patches/if_vlan.c.patch

-- 
Pawel Jakub Dawidek                       http://www.wheel.pl
pjd_at_FreeBSD.org                           http://www.FreeBSD.org
FreeBSD committer                         Am I Evil? Yes, I Am!

Received on Wed Oct 05 2005 - 18:37:07 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:38:44 UTC