[media] ttusb-budget: fix memory leak in ttusb_probe()
authorAlexey Khoroshilov <khoroshilov@ispras.ru>
Mon, 10 Jun 2013 19:00:54 +0000 (16:00 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Fri, 21 Jun 2013 18:06:51 +0000 (15:06 -0300)
commitb9d4b2da35d44117831c3382710f12a1f9965ed5
tree2f058c88c1761b2511fe89485ac2629599b0b8be
parent4ef72e347112a834fbd6944565b1f63d4af19c8a
[media] ttusb-budget: fix memory leak in ttusb_probe()

If something goes wrong starting from i2c_add_adapter(),
ttusb->iso_urb[] and ttusb itself are not deallocated.
Found by Linux Driver Verification project (linuxtesting.org).

Signed-off-by: Alexey Khoroshilov <khoroshilov@ispras.ru>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/usb/ttusb-budget/dvb-ttusb-budget.c