USB: cdc-acm: fix sysfs attribute registration bug
commit6b30a4e1c357410a78d7bcb831743b0e99bab4ad
authorAlan Stern <stern@rowland.harvard.edu>
Thu, 2 Aug 2007 17:29:10 +0000 (2 13:29 -0400)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 9 Aug 2007 21:27:24 +0000 (9 14:27 -0700)
tree909d5cef55432253c6a37fada833e999e9f6d3dd
parentf44bba1a92e01bbab6ca9817b86ddf9e1744a616
USB: cdc-acm: fix sysfs attribute registration bug

This patch (as950) fixes a bug in the cdc-acm driver.  It doesn't keep
track of which interface (control or data) the sysfs attributes get
registered for, and as a result, during disconnect it will sometimes
attempt to remove the attributes from the wrong interface.  The
left-over attributes can cause a crash later on, particularly if the driver
module has been unloaded.

Signed-off-by: Alan Stern <stern@rowland.harvard.edu>
CC: Oliver Neukum <oliver@neukum.name>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/class/cdc-acm.c