Skip to content
Commit 636d0375 authored by Bjorn Van Tilt's avatar Bjorn Van Tilt Committed by Marc Kleine-Budde
Browse files

can: usb_8dev: Fix memory leak in usb_8dev_start_xmit



Fixed a memory leak when an error occurred in the transmit function. In the
error handling the urb wasn't freed before returning. There was also a call to
the usb_unanchor_urb() function but the urb wasn't anchored.

Signed-off-by: default avatarBjorn Van Tilt <bjorn.vantilt@gmail.com>
Signed-off-by: default avatarMarc Kleine-Budde <mkl@pengutronix.de>
parent 17e84a92
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment