From: Alexey Khoroshilov Date: Fri, 6 Dec 2013 23:10:35 +0000 (+0400) Subject: can: ems_usb: fix urb leaks on failure paths X-Git-Tag: v3.13-rc5~30^2^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a1c31f1d057130cc63e72a09189410d169db7ecf;p=pandora-kernel.git 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 Acked-by: Sebastian Haas Signed-off-by: Marc Kleine-Budde --- Reading git-diff-tree failed