diff options
-rw-r--r-- | drivers/media/video/uvc/uvc_video.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/drivers/media/video/uvc/uvc_video.c b/drivers/media/video/uvc/uvc_video.c index b76b0ac0958f..39f5c85dd4b4 100644 --- a/drivers/media/video/uvc/uvc_video.c +++ b/drivers/media/video/uvc/uvc_video.c | |||
@@ -1188,7 +1188,11 @@ static void uvc_video_decode_bulk(struct urb *urb, struct uvc_streaming *stream, | |||
1188 | u8 *mem; | 1188 | u8 *mem; |
1189 | int len, ret; | 1189 | int len, ret; |
1190 | 1190 | ||
1191 | if (urb->actual_length == 0) | 1191 | /* |
1192 | * Ignore ZLPs if they're not part of a frame, otherwise process them | ||
1193 | * to trigger the end of payload detection. | ||
1194 | */ | ||
1195 | if (urb->actual_length == 0 && stream->bulk.header_size == 0) | ||
1192 | return; | 1196 | return; |
1193 | 1197 | ||
1194 | mem = urb->transfer_buffer; | 1198 | mem = urb->transfer_buffer; |