Before freeing memory, assert that there is no pending callout.

MFC after:	3 days
This commit is contained in:
Pawel Jakub Dawidek 2005-08-21 19:15:14 +00:00
parent 15da51f73c
commit e5cd9375e4

View File

@ -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); \