aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/usb/uvc/uvc_video.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/media/usb/uvc/uvc_video.c')
-rw-r--r--drivers/media/usb/uvc/uvc_video.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/usb/uvc/uvc_video.c b/drivers/media/usb/uvc/uvc_video.c
index 4bdad38fa7df..e3c388e7f952 100644
--- a/drivers/media/usb/uvc/uvc_video.c
+++ b/drivers/media/usb/uvc/uvc_video.c
@@ -1475,7 +1475,7 @@ static int uvc_init_video_isoc(struct uvc_streaming *stream,
u32 size;
psize = uvc_endpoint_max_bpi(stream->dev->udev, ep);
- size = stream->ctrl.dwMaxVideoFrameSize;
+ size = uvc_queue_frame_size(stream->cur_format, &stream->ctrl);
npackets = uvc_alloc_urb_buffers(stream, size, psize, gfp_flags);
if (npackets == 0)

Privacy Policy