aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/video/em28xx/em28xx-core.c
diff options
context:
space:
mode:
authorRobert Krakora <rob.krakora@messagenetsystems.com>2009-02-08 11:09:11 -0500
committerMauro Carvalho Chehab <mchehab@redhat.com>2009-03-30 11:42:44 -0400
commitaa5a1821859c9c2915bc00e79f6e01e619df6e8f (patch)
tree9d00a558f3f3e8ba4ec624edc7e59ba8e1e0cc96 /drivers/media/video/em28xx/em28xx-core.c
parent3e099baff451affd13a93c6fed216943e01b80fd (diff)
V4L/DVB (10518): em28xx: Fix for em28xx memory leak and function rename
Fix for em28xx memory leak and function rename Signed-off-by: Robert Krakora <rob.krakora@messagenetsystems.com> Signed-off-by: Douglas Schilling Landgraf <dougsland@redhat.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/video/em28xx/em28xx-core.c')
-rw-r--r--drivers/media/video/em28xx/em28xx-core.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/drivers/media/video/em28xx/em28xx-core.c b/drivers/media/video/em28xx/em28xx-core.c
index 3ac8ce0adec3..43f1d0e4c549 100644
--- a/drivers/media/video/em28xx/em28xx-core.c
+++ b/drivers/media/video/em28xx/em28xx-core.c
@@ -827,6 +827,19 @@ static void em28xx_irq_callback(struct urb *urb)
827 struct em28xx *dev = container_of(dma_q, struct em28xx, vidq); 827 struct em28xx *dev = container_of(dma_q, struct em28xx, vidq);
828 int rc, i; 828 int rc, i;
829 829
830 switch (urb->status) {
831 case 0: /* success */
832 case -ETIMEDOUT: /* NAK */
833 break;
834 case -ECONNRESET: /* kill */
835 case -ENOENT:
836 case -ESHUTDOWN:
837 return;
838 default: /* error */
839 em28xx_isocdbg("urb completition error %d.\n", urb->status);
840 break;
841 }
842
830 /* Copy data from URB */ 843 /* Copy data from URB */
831 spin_lock(&dev->slock); 844 spin_lock(&dev->slock);
832 rc = dev->isoc_ctl.isoc_copy(dev, urb); 845 rc = dev->isoc_ctl.isoc_copy(dev, urb);