diff options
author | Douglas Schilling Landgraf <dougsland@linuxtv.org> | 2008-11-12 00:37:39 -0200 |
---|---|---|
committer | Douglas Schilling Landgraf <dougsland@linuxtv.org> | 2008-11-12 00:37:39 -0200 |
commit | 008d3cb607b312c44919e629541ff1e5cc12ae43 (patch) | |
tree | 654bddecbf64c81bdcc613b2117406fafc80c2a7 /linux/drivers/media/dvb/ttusb-budget | |
parent | be08890b0323e39e6026b00048343971e10033a9 (diff) | |
download | mediapointer-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.c | 9 |
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"); |