aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDouglas Schilling Landgraf <dougsland@linuxtv.org>2008-11-11 21:37:39 -0500
committerMauro Carvalho Chehab <mchehab@redhat.com>2008-11-16 20:54:40 -0500
commitb7ed785b5f6a8dbdbd0cf8688a51c42e35205a4e (patch)
tree880977db95311bc4dad932c0365b075b985d77b7
parent11eb260a70b992b83fa2d15bb777cda3ee326c05 (diff)
V4L/DVB (9603): dvb-ttusb-budget: Add validation for ttusb_alloc_iso_urbs
Added validation for ttusb_alloc_iso_urbs Signed-off-by: Douglas Schilling Landgraf <dougsland@linuxtv.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
-rw-r--r--drivers/media/dvb/ttusb-budget/dvb-ttusb-budget.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/drivers/media/dvb/ttusb-budget/dvb-ttusb-budget.c b/drivers/media/dvb/ttusb-budget/dvb-ttusb-budget.c
index 5faeee3f70bf..4a3f2b8ea37d 100644
--- a/drivers/media/dvb/ttusb-budget/dvb-ttusb-budget.c
+++ b/drivers/media/dvb/ttusb-budget/dvb-ttusb-budget.c
@@ -1665,7 +1665,14 @@ static int ttusb_probe(struct usb_interface *intf, const struct usb_device_id *i
1665 1665
1666 ttusb_setup_interfaces(ttusb); 1666 ttusb_setup_interfaces(ttusb);
1667 1667
1668 ttusb_alloc_iso_urbs(ttusb); 1668 result = ttusb_alloc_iso_urbs(ttusb);
1669 if (result < 0) {
1670 dprintk("%s: ttusb_alloc_iso_urbs - failed\n", __func__);
1671 mutex_unlock(&ttusb->semi2c);
1672 kfree(ttusb);
1673 return result;
1674 }
1675
1669 if (ttusb_init_controller(ttusb)) 1676 if (ttusb_init_controller(ttusb))
1670 printk("ttusb_init_controller: error\n"); 1677 printk("ttusb_init_controller: error\n");
1671 1678