Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
can: dev: __can_get_echo_skb(): print error message, if trying to ech…
…o non existing skb 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 <[email protected]> Signed-off-by: Marc Kleine-Budde <[email protected]>
- Loading branch information