Re: [PATCH] xhci: Avoid double free after streams are disabled.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, May 04, 2010 at 12:15:02PM -0700, Greg KH wrote:
> On Fri, Apr 30, 2010 at 03:37:56PM -0700, Sarah Sharp wrote:
> > 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@xxxxxxxxxxxxxxx>
> > Tested-by: Ramya Desai <ramya.desai@xxxxxxxxx>
> 
> Does this also need to go into the -stable trees?

Oh nevermind, stream code isn't in the -stable trees :)

/me goes and gets another cup of coffee
--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux