]> git.baikalelectronics.ru Git - kernel.git/commit
can: mcba_usb: mcba_usb_start_xmit(): first fill skb, then pass to can_put_echo_skb()
authorMarc Kleine-Budde <mkl@pengutronix.de>
Wed, 28 Aug 2019 19:16:55 +0000 (21:16 +0200)
committerMarc Kleine-Budde <mkl@pengutronix.de>
Sun, 15 Nov 2020 17:24:35 +0000 (18:24 +0100)
commita37f8edaf8be6b60f76750e638a12a8c484c9b30
treebd17b49d0fc1be75a6b0cccc3b8362dde414a691
parent67ef8f75dd3cfed35cbf3423e6f84c7532ef8e97
can: mcba_usb: mcba_usb_start_xmit(): first fill skb, then pass to can_put_echo_skb()

The driver has to first fill the skb with data and then handle it to
can_put_echo_skb(). This patch moves the can_put_echo_skb() down, right before
sending the skb out via USB.

Fixes: 3405f1d6e64b ("can: mcba_usb: Add support for Microchip CAN BUS Analyzer")
Cc: Remigiusz Kołłątaj <remigiusz.kollataj@mobica.com>
Link: https://lore.kernel.org/r/20201111221204.1639007-1-mkl@pengutronix.de
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
drivers/net/can/usb/mcba_usb.c