diff options
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/media/video/pwc/pwc-if.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/media/video/pwc/pwc-if.c b/drivers/media/video/pwc/pwc-if.c index 46c114830884..83739b213e7f 100644 --- a/drivers/media/video/pwc/pwc-if.c +++ b/drivers/media/video/pwc/pwc-if.c | |||
@@ -866,11 +866,10 @@ int pwc_isoc_init(struct pwc_device *pdev) | |||
866 | } | 866 | } |
867 | if (ret) { | 867 | if (ret) { |
868 | /* De-allocate in reverse order */ | 868 | /* De-allocate in reverse order */ |
869 | while (i >= 0) { | 869 | while (i--) { |
870 | if (pdev->sbuf[i].urb != NULL) | 870 | if (pdev->sbuf[i].urb != NULL) |
871 | usb_free_urb(pdev->sbuf[i].urb); | 871 | usb_free_urb(pdev->sbuf[i].urb); |
872 | pdev->sbuf[i].urb = NULL; | 872 | pdev->sbuf[i].urb = NULL; |
873 | i--; | ||
874 | } | 873 | } |
875 | return ret; | 874 | return ret; |
876 | } | 875 | } |