From: Alexey Khoroshilov Date: Mon, 3 Jun 2013 01:58:49 +0000 (-0300) Subject: [media] staging/media: lirc_imon: fix leaks in imon_probe() X-Git-Tag: v3.11-rc1~17^2~118 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e049ca5e854263c821a15c0e25fe2ae202c365e1;p=pandora-kernel.git [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 Signed-off-by: Mauro Carvalho Chehab --- Reading git-diff-tree failed