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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 9 Feb 2017 07:02:46 +0000 (08:02 +0100)
commit85fb980acb01d563a80e3eddf2de86bf5d2895ef
treee80bebd1dc840dbebfffb0a8a37f31b1350301ed
parent4025ab36c81cfa4eb24f2ff98066b1ad00359ab9
can: bcm: fix hrtimer/tasklet termination in bcm op removal

commit a06393ed03167771246c4c43192d9c264bc48412 upstream.

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>
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
net/can/bcm.c