From: Alexey Khoroshilov Date: Mon, 8 Sep 2014 22:10:43 +0000 (-0300) Subject: [media] mceusb: fix usbdev leak X-Git-Tag: fixes-against-v3.18-rc2~130^2^2~86 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e947d9ad8ab118d51ff07b7d93c3c1a3e9f7c42f;p=pandora-kernel.git [media] mceusb: fix usbdev leak mceusb_init_rc_dev() does usb_get_dev(), but there is no any usb_put_dev() in the driver. The patch tries to straighten logic. It moves usb_get_dev() directly to mceusb_dev_probe() and adds usb_put_dev() to an error path and to mceusb_dev_disconnect(). Found by Linux Driver Verification project (linuxtesting.org). Signed-off-by: Alexey Khoroshilov Signed-off-by: Mauro Carvalho Chehab --- Reading git-diff-tree failed