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)
committerWilly Tarreau <w@1wt.eu>
Tue, 20 Jun 2017 12:03:12 +0000 (14:03 +0200)
commitd5361ee850ef3e69a92883e46ccbb5ed6ccb9323
treed7af4181314c9f40531c50b6897ddfb57d08d591
parent2adddc0a8fc6bccaa475c2cb40c10f11adb80f35
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: Willy Tarreau <w@1wt.eu>
net/can/bcm.c