From: Rahul Ruikar Date: Thu, 28 Oct 2010 15:31:19 +0000 (+0200) Subject: USB: gadget: f_mass_storage: put_device() in error recovery X-Git-Tag: v2.6.38-rc1~465^2~11^2~66 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=17a936117c587c23aafafdb9cd6d433a90daa83d;p=pandora-kernel.git USB: gadget: f_mass_storage: put_device() in error recovery This commit fixes an issue with error recovery after device_register() fails in Mass Storage Function. The device needs to be put to avoid resource leakage. Signed-off-by: Rahul Ruikar [mina86@mina86.com: updated commit message] Signed-off-by: Michal Nazarewicz Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed