projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6c832e3
)
V4L/DVB (8883): w9968cf: Fix order of usb_alloc_urb validation
author
Douglas Schilling Landgraf
<
[email protected]
>
Thu, 4 Sep 2008 14:19:27 +0000
(11:19 -0300)
committer
Mauro Carvalho Chehab
<
[email protected]
>
Mon, 29 Sep 2008 11:24:57 +0000
(08:24 -0300)
Fixed order of usb_alloc_urb pointer validation.
Cc: Luca Risolia <
[email protected]
>
Signed-off-by: Douglas Schilling Landgraf <
[email protected]
>
Signed-off-by: Mauro Carvalho Chehab <
[email protected]
>
drivers/media/video/w9968cf.c
patch
|
blob
|
history
diff --git
a/drivers/media/video/w9968cf.c
b/drivers/media/video/w9968cf.c
index 168baabe46591b02b9276e11987aaee44679ac63..11edf79f57be328a0f6a196f7d849776c3235a39 100644
(file)
--- a/
drivers/media/video/w9968cf.c
+++ b/
drivers/media/video/w9968cf.c
@@
-911,7
+911,6
@@
static int w9968cf_start_transfer(struct w9968cf_device* cam)
for (i = 0; i < W9968CF_URBS; i++) {
urb = usb_alloc_urb(W9968CF_ISO_PACKETS, GFP_KERNEL);
- cam->urb[i] = urb;
if (!urb) {
for (j = 0; j < i; j++)
usb_free_urb(cam->urb[j]);
@@
-919,6
+918,7
@@
static int w9968cf_start_transfer(struct w9968cf_device* cam)
return -ENOMEM;
}
+ cam->urb[i] = urb;
urb->dev = udev;
urb->context = (void*)cam;
urb->pipe = usb_rcvisocpipe(udev, 1);