igmp_group.c:add work_cancel_sync in igmp_grpfree

Signed-off-by: wangchen <wangchen41@xiaomi.com>
This commit is contained in:
wangchen 2024-08-30 16:07:57 +08:00 committed by Xiang Xiao
parent 78b64cc220
commit b791e27a8d

View file

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