]> git.baikalelectronics.ru Git - kernel.git/commit
ocelot: Cancel delayed work before wq destruction
authorClaudiu Manoil <claudiu.manoil@nxp.com>
Thu, 25 Jul 2019 13:33:18 +0000 (16:33 +0300)
committerDavid S. Miller <davem@davemloft.net>
Fri, 26 Jul 2019 21:11:30 +0000 (14:11 -0700)
commit7291d320bff65a9764fc316f6ffbce89f9406f6d
tree45b4c03b0955ad337653841feae854a51133e205
parent5a4e081f3ec89f89663e2de8cac3031c2af8f13b
ocelot: Cancel delayed work before wq destruction

Make sure the delayed work for stats update is not pending before
wq destruction.
This fixes the module unload path.
The issue is there since day 1.

Fixes: 1bed22a67906 ("net: mscc: Add initial Ocelot switch support")
Signed-off-by: Claudiu Manoil <claudiu.manoil@nxp.com>
Reviewed-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mscc/ocelot.c