]> git.baikalelectronics.ru Git - kernel.git/commit
can: bcm: fix hrtimer/tasklet termination in bcm op removal
authorOliver Hartkopp <socketcan@hartkopp.net>
Wed, 18 Jan 2017 20:30:51 +0000 (21:30 +0100)
committerMarc Kleine-Budde <mkl@pengutronix.de>
Mon, 30 Jan 2017 10:05:04 +0000 (11:05 +0100)
commit3c01d5e513b52612a85ca3c0f9d4018bdd96f102
tree31a3d03c374065a64e12f25cf628b7aa8edb8159
parente6c3d044bbe85c8d75c4232085d8bab60d11abde
can: bcm: fix hrtimer/tasklet termination in bcm op removal

When removing a bcm tx operation either a hrtimer or a tasklet might run.
As the hrtimer triggers its associated tasklet and vice versa we need to
take care to mutually terminate both handlers.

Reported-by: Michael Josenhans <michael.josenhans@web.de>
Signed-off-by: Oliver Hartkopp <socketcan@hartkopp.net>
Tested-by: Michael Josenhans <michael.josenhans@web.de>
Cc: linux-stable <stable@vger.kernel.org>
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
net/can/bcm.c