]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit120df3f3a89f3ab5d9450b87d823ce86fe4c26aa
tree17de519a492c4353dc65111bec683bd4f038a311
parent4854aa56c4058b9abc92a29d428d9418c790c0c6
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
86a9e4ddc58f90aaa5fd73a6df6fc9f13e5c0db8
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