linux-uconsole/drivers/net/can/spi
Timo Schlüßler 7302e7b108 can: mcp251x: mcp251x_restart_work_handler(): Fix potential force_quit race condition
[ Upstream commit 27a0e54bae ]

In mcp251x_restart_work_handler() the variable to stop the interrupt
handler (priv->force_quit) is reset after the chip is restarted and thus
a interrupt might occur.

This patch fixes the potential race condition by resetting force_quit
before enabling interrupts.

Signed-off-by: Timo Schlüßler <schluessler@krause.de>
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2019-12-05 09:19:43 +01:00
..
hi311x.c can: hi311x: Use level-triggered interrupt 2018-12-01 09:37:30 +01:00
Kconfig can: mcp251x: add support for mcp25625 2019-07-14 08:11:07 +02:00
Makefile
mcp251x.c can: mcp251x: mcp251x_restart_work_handler(): Fix potential force_quit race condition 2019-12-05 09:19:43 +01:00