Re: panic: mb_dtor_pack: ref_cnt != 1

From: Giorgos Keramidas <keramida_at_linux.gr>
Date: Sat, 5 Nov 2005 05:41:05 +0200
On 2005-11-05 03:34, Gleb Smirnoff <glebius_at_freebsd.org> wrote:
>   Andre, Thierry, Sam,
>
>   this patch should fix the problems

But it panics in mb_dtor_pack() because ext_type != EXT_CLUSTER
when my ath0 interface tries to associate with an AP.

I had to change this too, to make things work:

%%%
Index: kern/kern_mbuf.c
===================================================================
RCS file: /home/ncvs/src/sys/kern/kern_mbuf.c,v
retrieving revision 1.13
diff -u -r1.13 kern_mbuf.c
--- kern/kern_mbuf.c	4 Nov 2005 17:20:53 -0000	1.13
+++ kern/kern_mbuf.c	5 Nov 2005 03:27:06 -0000
_at__at_ -332,7 +332,7 _at__at_
 	KASSERT(m->m_ext.ext_free == NULL, ("%s: ext_free != NULL", __func__));
 	KASSERT(m->m_ext.ext_args == NULL, ("%s: ext_args != NULL", __func__));
 	KASSERT(m->m_ext.ext_size == MCLBYTES, ("%s: ext_size != MCLBYTES", __func__));
-	KASSERT(m->m_ext.ext_type == EXT_CLUSTER, ("%s: ext_type != EXT_CLUSTER", __func__));
+	KASSERT(m->m_ext.ext_type == EXT_PACKET, ("%s: ext_type != EXT_PACKET", __func__));
 	KASSERT(*m->m_ext.ref_cnt == 1, ("%s: ref_cnt != 1", __func__));
 #ifdef INVARIANTS
 	trash_dtor(m->m_ext.ext_buf, MCLBYTES, arg);
%%%
Received on Sat Nov 05 2005 - 02:54:46 UTC

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