upstream: [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)
committerChanho Park <chanho61.park@samsung.com>
Tue, 18 Nov 2014 02:48:40 +0000 (11:48 +0900)
commit56df632a9cd30ccb2de66284a94d6edaadaae8d9
tree4ef37f6381e42ca68b9a1b4b83bf2e912b3e7018
parent49f97c5d08e84ba7adf5fc6d07392a6d437c3e3c
upstream: [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