f9ba0ef9df9bef4522a6b897967e09fe1d078 parent d9385b6352da7fed50981f375c2ccb60354039a6 author Rahul Ruikar 1288279879 +0200 committer Greg Kroah-Hartman 1289483928 -0800 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 )VÖß—Px