summaryrefslogtreecommitdiff
path: root/linux/drivers/media/dvb/ttusb-budget
diff options
context:
space:
mode:
authorDouglas Schilling Landgraf <dougsland@linuxtv.org>2008-11-12 00:37:39 -0200
committerDouglas Schilling Landgraf <dougsland@linuxtv.org>2008-11-12 00:37:39 -0200
commit008d3cb607b312c44919e629541ff1e5cc12ae43 (patch)
tree654bddecbf64c81bdcc613b2117406fafc80c2a7 /linux/drivers/media/dvb/ttusb-budget
parentbe08890b0323e39e6026b00048343971e10033a9 (diff)
downloadmediapointer-dvb-s2-008d3cb607b312c44919e629541ff1e5cc12ae43.tar.gz
mediapointer-dvb-s2-008d3cb607b312c44919e629541ff1e5cc12ae43.tar.bz2
dvb-ttusb-budget: Add validation for ttusb_alloc_iso_urbs
From: Douglas Schilling Landgraf <dougsland@linuxtv.org> Added validation for ttusb_alloc_iso_urbs Priority: high Signed-off-by: Douglas Schilling Landgraf <dougsland@linuxtv.org>
Diffstat (limited to 'linux/drivers/media/dvb/ttusb-budget')
-rw-r--r--linux/drivers/media/dvb/ttusb-budget/dvb-ttusb-budget.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/linux/drivers/media/dvb/ttusb-budget/dvb-ttusb-budget.c b/linux/drivers/media/dvb/ttusb-budget/dvb-ttusb-budget.c
index 9271e2366..8775b78af 100644
--- a/linux/drivers/media/dvb/ttusb-budget/dvb-ttusb-budget.c
+++ b/linux/drivers/media/dvb/ttusb-budget/dvb-ttusb-budget.c
@@ -1685,7 +1685,14 @@ static int ttusb_probe(struct usb_interface *intf, const struct usb_device_id *i
ttusb_setup_interfaces(ttusb);
- ttusb_alloc_iso_urbs(ttusb);
+ result = ttusb_alloc_iso_urbs(ttusb);
+ if (result < 0) {
+ dprintk("%s: ttusb_alloc_iso_urbs - failed\n", __func__);
+ mutex_unlock(&ttusb->semi2c);
+ kfree(ttusb);
+ return result;
+ }
+
if (ttusb_init_controller(ttusb))
printk("ttusb_init_controller: error\n");