From: Bjørn Mork Date: Wed, 9 May 2012 11:53:23 +0000 (+0200) Subject: USB: cdc-wdm: remove from device list on disconnect X-Git-Tag: v3.5-rc1~149^2~84 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6286d85e8efdb59252d1ceb99a56fa6b0b11526c;p=pandora-kernel.git 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 Cc: stable Signed-off-by: Bjørn Mork Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed