diff options
| author | Bjørn Mork <bjorn@mork.no> | 2012-05-09 15:53:23 +0400 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2012-05-12 02:19:22 +0400 |
| commit | 6286d85e8efdb59252d1ceb99a56fa6b0b11526c (patch) | |
| tree | 37b91b39c74370899aedd708921f6774850cd52a /include | |
| parent | 6b0b79d38806481c1c8fffa7c5842f3c83679a42 (diff) | |
| download | linux-6286d85e8efdb59252d1ceb99a56fa6b0b11526c.tar.xz | |
USB: cdc-wdm: remove from device list on disconnect
Prevents dereferencing an invalid struct usb_interface
pointer.
Always delete entry from device list whether or not the
rest of the device state cleanup is postponed. The device
list uses desc->intf as key, and wdm_open will dereference
this key while searching for a matching device. A device
should not appear in the list unless probe() has succeeded
and disconnect() has not finished.
Cc: Oliver Neukum <oliver@neukum.org>
Cc: stable <stable@vger.kernel.org>
Signed-off-by: Bjørn Mork <bjorn@mork.no>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions
