Before freeing memory, assert that there is no pending callout.
MFC after: 3 days
This commit is contained in:
parent
15da51f73c
commit
e5cd9375e4
@ -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); \
|
||||
|
Loading…
Reference in New Issue
Block a user