aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/video/gspca/gspca.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/media/video/gspca/gspca.c')
-rw-r--r--drivers/media/video/gspca/gspca.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/drivers/media/video/gspca/gspca.c b/drivers/media/video/gspca/gspca.c
index 4694dc14a249..a286b91965fa 100644
--- a/drivers/media/video/gspca/gspca.c
+++ b/drivers/media/video/gspca/gspca.c
@@ -584,7 +584,11 @@ static int gspca_init_transfer(struct gspca_dev *gspca_dev)
584 goto out; 584 goto out;
585 585
586 /* start the cam */ 586 /* start the cam */
587 gspca_dev->sd_desc->start(gspca_dev); 587 ret = gspca_dev->sd_desc->start(gspca_dev);
588 if (ret < 0) {
589 destroy_urbs(gspca_dev);
590 goto out;
591 }
588 gspca_dev->streaming = 1; 592 gspca_dev->streaming = 1;
589 atomic_set(&gspca_dev->nevent, 0); 593 atomic_set(&gspca_dev->nevent, 0);
590 594