]> git.baikalelectronics.ru Git - kernel.git/commit
amt: cancel delayed_work synchronously in amt_fini()
authorTaehee Yoo <ap420073@gmail.com>
Tue, 16 Nov 2021 16:09:23 +0000 (16:09 +0000)
committerJakub Kicinski <kuba@kernel.org>
Wed, 17 Nov 2021 03:14:12 +0000 (19:14 -0800)
commitc4ede9c0cb0b2a33148b114892b3ff2cd85dab87
treecdb8ffc63102c55e4030e73d5da976e61a50a159
parentaf7c778acbc87cc41b1cd4f4443210ee968d8272
amt: cancel delayed_work synchronously in amt_fini()

When the amt module is being removed, it calls cancel_delayed_work()
to cancel pending delayed_work. But this function doesn't wait for
canceling delayed_work.
So, workers can be still doing after module delete.

In order to avoid this, cancel_delayed_work_sync() should be used instead.

Suggested-by: Jakub Kicinski <kuba@kernel.org>
Fixes: 410f2274f310 ("amt: add multicast(IGMP) report message handler")
Signed-off-by: Taehee Yoo <ap420073@gmail.com>
Link: https://lore.kernel.org/r/20211116160923.25258-1-ap420073@gmail.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/amt.c