alistair23-linux/drivers/net/can/usb/kvaser_usb
Jimmy Assarsson e13fb9b37c can: kvaser_usb: Fix accessing freed memory in kvaser_usb_start_xmit()
The call to can_put_echo_skb() may result in the skb being freed. The skb
is later used in the call to dev->ops->dev_frame_to_cmd().

This is avoided by moving the call to can_put_echo_skb() after
dev->ops->dev_frame_to_cmd().

Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Jimmy Assarsson <jimmyassarsson@gmail.com>
Cc: linux-stable <stable@vger.kernel.org>
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
2018-11-09 17:20:03 +01:00
..
kvaser_usb.h
kvaser_usb_core.c can: kvaser_usb: Fix accessing freed memory in kvaser_usb_start_xmit() 2018-11-09 17:20:03 +01:00
kvaser_usb_hydra.c can: kvaser_usb: Fix potential uninitialized variable use 2018-11-09 17:19:57 +01:00
kvaser_usb_leaf.c can: kvaser_usb: Simplify struct kvaser_cmd_cardinfo 2018-07-27 10:40:19 +02:00
Makefile