commit | e049ca5e854263c821a15c0e25fe2ae202c365e1 | [log] [tgz] |
---|---|---|
author | Alexey Khoroshilov <khoroshilov@ispras.ru> | Sun Jun 02 22:58:49 2013 -0300 |
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | Mon Jun 17 15:52:20 2013 -0300 |
tree | 9cd30b2a350ef938323f87c7ced98411f5446066 | |
parent | 07342664d3725de4b21478da222593da491afcd8 [diff] |
[media] staging/media: lirc_imon: fix leaks in imon_probe() Error handling of usb_submit_urb() is not as all others in imon_probe(). It just unlocks mutexes and returns nonzero leaving all already allocated resources unfreed. The patch makes sure all the resources are 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>