From: Alexey Khoroshilov Date: Mon, 15 Sep 2014 21:36:15 +0000 (-0300) Subject: [media] imon: fix usbdev leaks X-Git-Tag: fixes-against-v3.18-rc2~130^2^2~76 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e87cb470896e9089d2185e1dcbe8d17b0e3361d3;p=pandora-kernel.git [media] imon: fix usbdev leaks imon_probe() does three usb_get_dev(), but there is no any usb_put_dev() in the driver. The patch adds usb_put_dev() to error paths, to imon_disconnect() and to imon_probe() as far as usbdev is not saved anywhere. Found by Linux Driver Verification project (linuxtesting.org). Signed-off-by: Alexey Khoroshilov Signed-off-by: Mauro Carvalho Chehab --- Reading git-diff-tree failed