projects
/
platform
/
upstream
/
kernel-adaptation-pc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1f54a6a
)
USB: pwc-if loop fix
author
Mariusz Kozlowski
<m.kozlowski@tuxland.pl>
Thu, 16 Nov 2006 15:38:57 +0000
(16:38 +0100)
committer
Greg Kroah-Hartman
<gregkh@suse.de>
Fri, 1 Dec 2006 22:23:31 +0000
(14:23 -0800)
We should free urbs starting at [i-1] not [i].
Signed-off-by: Mariusz Kozlowski <m.kozlowski@tuxland.pl>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/media/video/pwc/pwc-if.c
patch
|
blob
|
history
diff --git
a/drivers/media/video/pwc/pwc-if.c
b/drivers/media/video/pwc/pwc-if.c
index
46c1148
..
83739b2
100644
(file)
--- 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)
}
if (ret) {
/* De-allocate in reverse order */
- while (i
>= 0
) {
+ while (i
--
) {
if (pdev->sbuf[i].urb != NULL)
usb_free_urb(pdev->sbuf[i].urb);
pdev->sbuf[i].urb = NULL;
- i--;
}
return ret;
}