]> git.baikalelectronics.ru Git - kernel.git/commit
[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)
commitf689ef5f0e2863b59f9e703eae13faef18bba604
tree2f058c88c1761b2511fe89485ac2629599b0b8be
parentf1f4f030af63508ac681816b9fe870ab81b4723c
[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