summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authorpjd <pjd@FreeBSD.org>2005-08-21 19:15:14 +0000
committerpjd <pjd@FreeBSD.org>2005-08-21 19:15:14 +0000
commitd4baad5992decdf3ce9e50e1a426927488be3d0a (patch)
tree02128dc465bb907f5c4cf07f4ae44220dcfb364a /sys
parent5e1fb20fd40185ccd1e5c6d04372feffde0fe832 (diff)
downloadFreeBSD-src-d4baad5992decdf3ce9e50e1a426927488be3d0a.zip
FreeBSD-src-d4baad5992decdf3ce9e50e1a426927488be3d0a.tar.gz
Before freeing memory, assert that there is no pending callout.
MFC after: 3 days
Diffstat (limited to 'sys')
-rw-r--r--sys/netgraph/bluetooth/l2cap/ng_l2cap_misc.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/netgraph/bluetooth/l2cap/ng_l2cap_misc.h b/sys/netgraph/bluetooth/l2cap/ng_l2cap_misc.h
index 4679497..ad97107 100644
--- a/sys/netgraph/bluetooth/l2cap/ng_l2cap_misc.h
+++ b/sys/netgraph/bluetooth/l2cap/ng_l2cap_misc.h
@@ -73,6 +73,7 @@ do { \
#define ng_l2cap_free_cmd(cmd) \
do { \
+ KASSERT(!callout_pending(&(cmd)->timo), ("Pending callout!")); \
NG_FREE_M((cmd)->aux); \
bzero((cmd), sizeof(*(cmd))); \
FREE((cmd), M_NETGRAPH_L2CAP); \
OpenPOWER on IntegriCloud