USB: gadget: Remove suspended sysfs file before freeing cdev
authorPavankumar Kondeti <pkondeti@codeaurora.org>
Thu, 16 Dec 2010 09:02:25 +0000 (14:32 +0530)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 16 Dec 2010 23:45:44 +0000 (15:45 -0800)
cdev struct is accessed in suspended sysfs show function.  So
remove sysfs file before freeing the cdev in composite_unbind.

Signed-off-by: Pavankumar Kondeti <pkondeti@codeaurora.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>

No differences found