Commit a48b4b9c authored by Committed by Greg Kroah-Hartman
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 commit e7a6994d043a1e31d5b17706a22ce33d2a3e4cdc upstream. 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 <email@example.com> Signed-off-by: Marc Kleine-Budde <firstname.lastname@example.org> Signed-off-by: Greg Kroah-Hartman <email@example.com>
Showing with 5 additions and 1 deletion