diff options
author | Hangyu Hua <[email protected]> | 2022-03-11 16:02:08 +0800 |
---|---|---|
committer | Marc Kleine-Budde <[email protected]> | 2022-03-31 09:55:27 +0200 |
commit | 04c9b00ba83594a29813d6b1fb8fdc93a3915174 (patch) | |
tree | c0a0c04bbd11c20e6b40870bcbeafd91a9b76493 /net/unix/af_unix.c | |
parent | 3d3925ff6433f98992685a9679613a2cc97f3ce2 (diff) |
can: mcba_usb: mcba_usb_start_xmit(): fix double dev_kfree_skb in error path
There is no need to call dev_kfree_skb() when usb_submit_urb() fails
because can_put_echo_skb() deletes original skb and
can_free_echo_skb() deletes the cloned skb.
Fixes: 51f3baad7de9 ("can: mcba_usb: Add support for Microchip CAN BUS Analyzer")
Link: https://lore.kernel.org/all/[email protected]
Signed-off-by: Hangyu Hua <[email protected]>
Signed-off-by: Marc Kleine-Budde <[email protected]>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions