]> git.karo-electronics.de Git - linux-beck.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)
commita06393ed03167771246c4c43192d9c264bc48412
tree31a3d03c374065a64e12f25cf628b7aa8edb8159
parentd1156b489fa734d1af763d6a07b1637c01bb0aed
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