Files
linux/drivers/net
Marc Kleine-Budde 004ebb0615 can: dev: __can_get_echo_skb(): print error message, if trying to echo non existing skb
commit 7da11ba5c5 upstream.

Prior to echoing a successfully transmitted CAN frame (by calling
can_get_echo_skb()), CAN drivers have to put the CAN frame (by calling
can_put_echo_skb() in the transmit function). These put and get function
take an index as parameter, which is used to identify the CAN frame.

A driver calling can_get_echo_skb() with a index not pointing to a skb
is a BUG, so add an appropriate error message.

Cc: linux-stable <stable@vger.kernel.org>
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2023-05-15 09:57:45 +09:00
..
2016-06-15 22:06:06 -07:00
2018-04-30 06:05:25 -07:00
2017-12-09 22:01:54 +01:00
2016-05-09 00:00:28 -04:00
2016-04-26 15:53:05 -04:00
2018-03-22 09:17:57 +01:00