diff options
author | Sarah Sharp <sarah.a.sharp@linux.intel.com> | 2010-04-30 18:37:56 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2010-05-20 16:21:40 -0400 |
commit | 8a007748fbadb8317d0af289f3bca5694354d63a (patch) | |
tree | bfeefd0403ea4f810d35a9c1ad087561c2a19c83 /drivers/thermal | |
parent | 85bcb5ee889e0ebb9154718939e049de265fcdfb (diff) |
USB: xhci: Avoid double free after streams are disabled.
When a device is disconnected, xhci_free_virt_device() is called. Ramya
found that if the device had streams enabled, and then the driver freed
the streams with a call to usb_free_streams(), then about a minute after
he had called this, his machine crashed with a Bad DMA error. It turns
out that xhci_free_virt_device() would attempt to free the endpoint's
stream_info data structure if it wasn't NULL, and the free streams
function was not setting it to NULL after freeing it.
Signed-off-by: Sarah Sharp <sarah.a.sharp@linux.intel.com>
Tested-by: Ramya Desai <ramya.desai@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/thermal')
0 files changed, 0 insertions, 0 deletions