diff options
Diffstat (limited to 'drivers/media/video/uvc/uvc_video.c')
-rw-r--r-- | drivers/media/video/uvc/uvc_video.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/media/video/uvc/uvc_video.c b/drivers/media/video/uvc/uvc_video.c index 9139086f940a..0789ba381fc1 100644 --- a/drivers/media/video/uvc/uvc_video.c +++ b/drivers/media/video/uvc/uvc_video.c | |||
@@ -540,6 +540,9 @@ static void uvc_video_decode_bulk(struct urb *urb, | |||
540 | u8 *mem; | 540 | u8 *mem; |
541 | int len, ret; | 541 | int len, ret; |
542 | 542 | ||
543 | if (urb->actual_length == 0) | ||
544 | return; | ||
545 | |||
543 | mem = urb->transfer_buffer; | 546 | mem = urb->transfer_buffer; |
544 | len = urb->actual_length; | 547 | len = urb->actual_length; |
545 | video->bulk.payload_size += len; | 548 | video->bulk.payload_size += len; |