Skip to content
Commit e9f2a856 authored by Wen Yang's avatar Wen Yang Committed by Marc Kleine-Budde
Browse files

can: flexcan: fix an use-after-free in flexcan_setup_stop_mode()



The gpr_np variable is still being used in dev_dbg() after the
of_node_put() call, which may result in use-after-free.

Fixes: de3578c1 ("can: flexcan: add self wakeup support")
Signed-off-by: default avatarWen Yang <wen.yang99@zte.com.cn>
Cc: linux-stable <stable@vger.kernel.org> # >= v5.0
Signed-off-by: default avatarMarc Kleine-Budde <mkl@pengutronix.de>
parent 375f7558
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