summaryrefslogtreecommitdiff
path: root/drivers/net/dummy.c
diff options
context:
space:
mode:
authorAlexey Khoroshilov <khoroshilov@ispras.ru>2013-12-06 23:10:35 (GMT)
committerMarc Kleine-Budde <mkl@pengutronix.de>2013-12-17 10:19:11 (GMT)
commita1c31f1d057130cc63e72a09189410d169db7ecf (patch)
treeac0e5e0f58916ea7584076ce443600307faf7458 /drivers/net/dummy.c
parent9bd7d20c45157c175bfd45449e904a404506f99c (diff)
downloadlinux-a1c31f1d057130cc63e72a09189410d169db7ecf.tar.xz
can: ems_usb: fix urb leaks on failure paths
There are a couple failure paths where urb leaks. Is spare code within ems_usb_start_xmit(), usb_free_urb() should be used to deallocate urb instead of usb_unanchor_urb(). In ems_usb_start() there is no usb_free_urb() if usb_submit_urb() fails. Found by Linux Driver Verification project (linuxtesting.org). Signed-off-by: Alexey Khoroshilov <khoroshilov@ispras.ru> Acked-by: Sebastian Haas <dev@sebastianhaas.info> Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
Diffstat (limited to 'drivers/net/dummy.c')
0 files changed, 0 insertions, 0 deletions