igmp_group.c:add work_cancel_sync in igmp_grpfree
Signed-off-by: wangchen <wangchen41@xiaomi.com>
This commit is contained in:
parent
78b64cc220
commit
b791e27a8d
1 changed files with 4 additions and 0 deletions
|
@ -218,6 +218,10 @@ void igmp_grpfree(FAR struct net_driver_s *dev,
|
||||||
|
|
||||||
wd_cancel(&group->wdog);
|
wd_cancel(&group->wdog);
|
||||||
|
|
||||||
|
/* Cancel the workqueue */
|
||||||
|
|
||||||
|
work_cancel_sync(LPWORK, &group->work);
|
||||||
|
|
||||||
/* Remove the group structure from the group list in the device structure */
|
/* Remove the group structure from the group list in the device structure */
|
||||||
|
|
||||||
sq_rem((FAR sq_entry_t *)group, &dev->d_igmp_grplist);
|
sq_rem((FAR sq_entry_t *)group, &dev->d_igmp_grplist);
|
||||||
|
|
Loading…
Reference in a new issue