V4L/DVB (5790): Fix error handling for stv680
authorMauro Carvalho Chehab <mchehab@infradead.org>
Mon, 25 Jun 2007 18:33:41 +0000 (15:33 -0300)
committerMauro Carvalho Chehab <mchehab@infradead.org>
Wed, 18 Jul 2007 17:24:21 +0000 (14:24 -0300)
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
drivers/media/video/stv680.c

index bf3aa8d2d57e3ccc7ecdcbdf29b4e67e2e041aaa..4dc5bc714b953044467a8b7020a65884767ed51b 100644 (file)
@@ -715,8 +715,11 @@ static int stv680_start_stream (struct usb_stv *stv680)
                                   stv680_video_irq, stv680);
                stv680->urb[i] = urb;
                err = usb_submit_urb (stv680->urb[i], GFP_KERNEL);
-               if (err)
-                       PDEBUG (0, "STV(e): urb burned down in start stream");
+               if (err) {
+                       PDEBUG (0, "STV(e): urb burned down with err "
+                                  "%d in start stream %d", err, i);
+                       goto nomem_err;
+               }
        }                       /* i STV680_NUMSBUF */
 
        stv680->framecount = 0;