mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-05 10:29:37 +00:00
usb: zc0301_core free urb cleanup
- usb_free_urb() cleanup Signed-off-by: Mariusz Kozlowski <m.kozlowski@tuxland.pl> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
This commit is contained in:
parent
926b1e9009
commit
8563650da0
1 changed files with 1 additions and 1 deletions
|
@ -489,7 +489,7 @@ static int zc0301_start_transfer(struct zc0301_device* cam)
|
|||
return 0;
|
||||
|
||||
free_urbs:
|
||||
for (i = 0; (i < ZC0301_URBS) && cam->urb[i]; i++)
|
||||
for (i = 0; i < ZC0301_URBS; i++)
|
||||
usb_free_urb(cam->urb[i]);
|
||||
|
||||
free_buffers:
|
||||
|
|
Loading…
Reference in a new issue