1
0
Fork 0
alistair23-linux/drivers/net/can/spi
Timo Schlüßler 27a0e54bae can: mcp251x: mcp251x_restart_work_handler(): Fix potential force_quit race condition
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>
2019-11-05 12:44:22 +01:00
..
Kconfig can: mcp251x: add support for mcp25625 2019-06-07 23:03:53 +02:00
Makefile treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00
hi311x.c can: Delete unnecessary checks before the macro call “dev_kfree_skb” 2019-08-22 16:22:03 -07:00
mcp251x.c can: mcp251x: mcp251x_restart_work_handler(): Fix potential force_quit race condition 2019-11-05 12:44:22 +01:00