Skip to content
Commit e7a6994d authored by Marc Kleine-Budde's avatar Marc Kleine-Budde
Browse files

can: dev: __can_get_echo_skb(): Don't crash the kernel if can_priv::echo_skb...


can: dev: __can_get_echo_skb(): Don't crash the kernel if can_priv::echo_skb is accessed out of bounds

If the "struct can_priv::echo_skb" is accessed out of bounds would lead
to a kernel crash. Better print a sensible warning message instead and
try to recover.

Cc: linux-stable <stable@vger.kernel.org>
Signed-off-by: default avatarMarc Kleine-Budde <mkl@pengutronix.de>
parent 200f5c49
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