diff options
| author | Marc Kleine-Budde <[email protected]> | 2021-03-19 14:08:13 +0000 |
|---|---|---|
| committer | Marc Kleine-Budde <[email protected]> | 2021-03-30 09:14:11 +0000 |
| commit | 4168d079aa41498639b2c64b4583375bcdf360d9 (patch) | |
| tree | cdc29d6f7c5c769a70deb3c60384c4a528207550 /drivers/net/can/usb/usb_8dev.c | |
| parent | can: dev: always create TX echo skb (diff) | |
| download | kernel-4168d079aa41498639b2c64b4583375bcdf360d9.tar.gz kernel-4168d079aa41498639b2c64b4583375bcdf360d9.zip | |
can: dev: can_free_echo_skb(): don't crash the kernel if can_priv::echo_skb is accessed out of bounds
A out of bounds access to "struct can_priv::echo_skb" leads to a
kernel crash. Better print a sensible warning message instead and try
to recover.
This patch is similar to:
| e7a6994d043a ("can: dev: __can_get_echo_skb(): Don't crash the kernel
| if can_priv::echo_skb is accessed out of bounds")
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Marc Kleine-Budde <[email protected]>
Diffstat (limited to 'drivers/net/can/usb/usb_8dev.c')
0 files changed, 0 insertions, 0 deletions
