aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/media/video/em28xx/em28xx-core.c13
1 files changed, 11 insertions, 2 deletions
diff --git a/drivers/media/video/em28xx/em28xx-core.c b/drivers/media/video/em28xx/em28xx-core.c
index 263b6c91adb5..442d50d7f320 100644
--- a/drivers/media/video/em28xx/em28xx-core.c
+++ b/drivers/media/video/em28xx/em28xx-core.c
@@ -573,8 +573,16 @@ static inline void em2820_isoc_video_copy(struct em2820 *dev,
573 573
574 if ((*f)->fieldbytesused + len > dev->field_size) 574 if ((*f)->fieldbytesused + len > dev->field_size)
575 len =dev->field_size - (*f)->fieldbytesused; 575 len =dev->field_size - (*f)->fieldbytesused;
576
577 if (buf[0] != 0x88 && buf[0] != 0x22) {
578 em2820_isocdbg("frame is not complete\n");
579 startread = buf;
580 len+=4;
581 } else
582 startread = buf + 4;
583
576 remain = len; 584 remain = len;
577 startread = buf + 4; 585
578 if ((*f)->top_field) 586 if ((*f)->top_field)
579 fieldstart = (*f)->bufmem; 587 fieldstart = (*f)->bufmem;
580 else 588 else
@@ -653,7 +661,8 @@ void em2820_isocIrq(struct urb *urb, struct pt_regs *regs)
653 em2820_isocdbg("data error: [%d] len=%d, status=%d", i, 661 em2820_isocdbg("data error: [%d] len=%d, status=%d", i,
654 urb->iso_frame_desc[i].actual_length, 662 urb->iso_frame_desc[i].actual_length,
655 urb->iso_frame_desc[i].status); 663 urb->iso_frame_desc[i].status);
656 continue; 664 if (urb->iso_frame_desc[i].status != -EPROTO)
665 continue;
657 } 666 }
658 if (urb->iso_frame_desc[i].actual_length <= 0) { 667 if (urb->iso_frame_desc[i].actual_length <= 0) {
659 em2820_isocdbg("packet %d is empty",i); 668 em2820_isocdbg("packet %d is empty",i);