summaryrefslogtreecommitdiff
path: root/linux/drivers/media/video/em28xx/em28xx-core.c
diff options
context:
space:
mode:
authorDouglas Schilling Landgraf <dougsland@redhat.com>2009-02-08 14:09:11 -0200
committerDouglas Schilling Landgraf <dougsland@redhat.com>2009-02-08 14:09:11 -0200
commit2bd11adc025f4c324d0eb2a9861bdf7589e3b74e (patch)
treea92b3e9da8a5e2ae90d0c070ce7d7df53041a7a4 /linux/drivers/media/video/em28xx/em28xx-core.c
parent2f8e6c790e74ada20db6965056476d944041fdfa (diff)
downloadmediapointer-dvb-s2-2bd11adc025f4c324d0eb2a9861bdf7589e3b74e.tar.gz
mediapointer-dvb-s2-2bd11adc025f4c324d0eb2a9861bdf7589e3b74e.tar.bz2
em28xx: Fix for em28xx memory leak and function rename
From: Robert Krakora <rob.krakora@messagenetsystems.com> Fix for em28xx memory leak and function rename Priority: high Signed-off-by: Robert Krakora <rob.krakora@messagenetsystems.com> Signed-off-by: Douglas Schilling Landgraf <dougsland@redhat.com>
Diffstat (limited to 'linux/drivers/media/video/em28xx/em28xx-core.c')
-rw-r--r--linux/drivers/media/video/em28xx/em28xx-core.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/linux/drivers/media/video/em28xx/em28xx-core.c b/linux/drivers/media/video/em28xx/em28xx-core.c
index 15d86bc97..743215ca9 100644
--- a/linux/drivers/media/video/em28xx/em28xx-core.c
+++ b/linux/drivers/media/video/em28xx/em28xx-core.c
@@ -836,6 +836,19 @@ static void em28xx_irq_callback(struct urb *urb)
struct em28xx *dev = container_of(dma_q, struct em28xx, vidq);
int rc, i;
+ switch (urb->status) {
+ case 0: /* success */
+ case -ETIMEDOUT: /* NAK */
+ break;
+ case -ECONNRESET: /* kill */
+ case -ENOENT:
+ case -ESHUTDOWN:
+ return;
+ default: /* error */
+ em28xx_isocdbg("urb completition error %d.\n", urb->status);
+ break;
+ }
+
/* Copy data from URB */
spin_lock(&dev->slock);
rc = dev->isoc_ctl.isoc_copy(dev, urb);