projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
57c6d2e
)
V4L/DVB: gspca - main: Convert wMaxPacketSize from little endian 16 to cpu
author
Jean-François Moine
<moinejf@free.fr>
Thu, 29 Apr 2010 09:01:53 +0000
(06:01 -0300)
committer
Mauro Carvalho Chehab
<mchehab@redhat.com>
Wed, 19 May 2010 15:58:45 +0000
(12:58 -0300)
Signed-off-by: Jean-François Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/video/gspca/gspca.c
patch
|
blob
|
history
diff --git
a/drivers/media/video/gspca/gspca.c
b/drivers/media/video/gspca/gspca.c
index e8d08f887957479449d6d6f3a9b5cbe4f33a9688..efe61593878346e3017d480469832c48b7c9f3f9 100644
(file)
--- a/
drivers/media/video/gspca/gspca.c
+++ b/
drivers/media/video/gspca/gspca.c
@@
-199,7
+199,7
@@
static int alloc_and_submit_int_urb(struct gspca_dev *gspca_dev,
void *buffer = NULL;
int ret = -EINVAL;
- buffer_len =
ep->wMaxPacketSize
;
+ buffer_len =
le16_to_cpu(ep->wMaxPacketSize)
;
interval = ep->bInterval;
PDEBUG(D_PROBE, "found int in endpoint: 0x%x, "
"buffer_len=%u, interval=%u",
@@
-213,7
+213,7
@@
static int alloc_and_submit_int_urb(struct gspca_dev *gspca_dev,
goto error;
}
- buffer = usb_buffer_alloc(dev,
ep->wMaxPacketSize
,
+ buffer = usb_buffer_alloc(dev,
buffer_len
,
GFP_KERNEL, &urb->transfer_dma);
if (!buffer) {
ret = -ENOMEM;