Skip to content

Commit

Permalink
igmp_group.c:add work_cancel_sync in igmp_grpfree
Browse files Browse the repository at this point in the history
Signed-off-by: wangchen <[email protected]>
  • Loading branch information
wangchen61698 committed Oct 12, 2024
1 parent 659f77a commit 225ed6c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions net/igmp/igmp_group.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 225ed6c

Please sign in to comment.