Skip to content
Commit 27a0e54b authored by Timo Schlüßler's avatar Timo Schlüßler Committed by Marc Kleine-Budde
Browse files

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: default avatarTimo Schlüßler <schluessler@krause.de>
Signed-off-by: default avatarMarc Kleine-Budde <mkl@pengutronix.de>
parent 688d11c3
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment