diff options
author | Alexey Khoroshilov <khoroshilov@ispras.ru> | 2013-06-10 21:00:54 +0200 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2013-06-21 20:06:51 +0200 |
commit | b9d4b2da35d44117831c3382710f12a1f9965ed5 (patch) | |
tree | 2f058c88c1761b2511fe89485ac2629599b0b8be /drivers/media/usb/ttusb-budget | |
parent | [media] V4L2: soc-camera: remove unneeded include path (diff) | |
download | linux-b9d4b2da35d44117831c3382710f12a1f9965ed5.tar.xz linux-b9d4b2da35d44117831c3382710f12a1f9965ed5.zip |
[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>
Diffstat (limited to 'drivers/media/usb/ttusb-budget')
-rw-r--r-- | drivers/media/usb/ttusb-budget/dvb-ttusb-budget.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/media/usb/ttusb-budget/dvb-ttusb-budget.c b/drivers/media/usb/ttusb-budget/dvb-ttusb-budget.c index 21b9049c7b3f..f8a60c197534 100644 --- a/drivers/media/usb/ttusb-budget/dvb-ttusb-budget.c +++ b/drivers/media/usb/ttusb-budget/dvb-ttusb-budget.c @@ -1768,6 +1768,8 @@ err_i2c_del_adapter: i2c_del_adapter(&ttusb->i2c_adap); err_unregister_adapter: dvb_unregister_adapter (&ttusb->adapter); + ttusb_free_iso_urbs(ttusb); + kfree(ttusb); return result; } |