Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b7ed785b authored by Douglas Schilling Landgraf's avatar Douglas Schilling Landgraf Committed by Mauro Carvalho Chehab
Browse files

V4L/DVB (9603): dvb-ttusb-budget: Add validation for ttusb_alloc_iso_urbs



Added validation for ttusb_alloc_iso_urbs

Signed-off-by: default avatarDouglas Schilling Landgraf <dougsland@linuxtv.org>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@redhat.com>
parent 11eb260a
Loading
Loading
Loading
Loading
+8 −1
Original line number Diff line number Diff line
@@ -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");