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>

authored by Douglas Schilling Landgraf and committed by Mauro Carvalho Chehab b7ed785b 11eb260a

+8 -1
+8 -1
drivers/media/dvb/ttusb-budget/dvb-ttusb-budget.c
··· 1665 1665 1666 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 1676 if (ttusb_init_controller(ttusb)) 1670 1677 printk("ttusb_init_controller: error\n"); 1671 1678