summaryrefslogtreecommitdiffstats
path: root/drivers/net/can/flexcan.c
diff options
context:
space:
mode:
authorMarc Kleine-Budde <mkl@pengutronix.de>2018-10-31 14:15:13 +0100
committerMarc Kleine-Budde <mkl@pengutronix.de>2018-11-09 17:20:46 +0100
commit7da11ba5c5066dadc2e96835a6233d56d7b7764a (patch)
tree388d431f4cf4512814f35ad4d4b073c4ce7ad46c /drivers/net/can/flexcan.c
parente7a6994d043a1e31d5b17706a22ce33d2a3e4cdc (diff)
downloadlinux-7da11ba5c5066dadc2e96835a6233d56d7b7764a.tar.bz2
can: dev: __can_get_echo_skb(): print error message, if trying to echo 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 <stable@vger.kernel.org> Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
Diffstat (limited to 'drivers/net/can/flexcan.c')
0 files changed, 0 insertions, 0 deletions