mirror of
https://github.com/torvalds/linux.git
synced 2024-11-16 00:52:01 +00:00
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>
This commit is contained in:
parent
11eb260a70
commit
b7ed785b5f
@ -1665,7 +1665,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");
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user