USB: fix oops on disconnect in cdc-acm
authorOliver Neukum <oliver@neukum.org>
Tue, 4 Aug 2009 21:52:09 +0000 (23:52 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 7 Aug 2009 23:05:14 +0000 (16:05 -0700)
commitcf7fdd57f978d40ceb9a0f58a25f5cf9c84d6f33
tree17de519a492c4353dc65111bec683bd4f038a311
parentc15e3ca1d822abba78c00b1ffc3e7b382a50396e
USB: fix oops on disconnect in cdc-acm

This patch fixes an oops caused when during an unplug a device's table
of endpoints is zeroed before the driver is notified. A pointer to
the endpoint must be cached.

this fixes a regression caused by commit
5186ffee2320942c3dc9745f7930e0eb15329ca6
Therefore it should go into 2.6.31

Signed-off-by: Oliver Neukum <oliver@neukum.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/class/cdc-acm.c
drivers/usb/class/cdc-acm.h