mirror of
https://github.com/apache/nuttx.git
synced 2026-05-20 20:44:39 +08:00
igmp_group.c:add work_cancel_sync in igmp_grpfree
Signed-off-by: wangchen <wangchen41@xiaomi.com>
This commit is contained in:
@@ -218,6 +218,10 @@ void igmp_grpfree(FAR struct net_driver_s *dev,
|
||||
|
||||
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 */
|
||||
|
||||
sq_rem((FAR sq_entry_t *)group, &dev->d_igmp_grplist);
|
||||
|
||||
Reference in New Issue
Block a user