Messages in this thread | | | Date | Wed, 14 Nov 2007 13:45:43 -0800 | From | Greg KH <> | Subject | Re: [stable] [PATCH] dmaengine: Fix broken device refcounting |
| |
On Wed, Nov 07, 2007 at 11:46:07AM -0700, Dan Williams wrote: > From: Haavard Skinnemoen <hskinnemoen@atmel.com> > > When a DMA device is unregistered, its reference count is decremented > twice for each channel: Once dma_class_dev_release() and once in > dma_chan_cleanup(). This may result in the DMA device driver's > remove() function completing before all channels have been cleaned > up, causing lots of use-after-free fun. > > Fix it by incrementing the device's reference count twice for each > channel during registration. > > Signed-off-by: Haavard Skinnemoen <hskinnemoen@atmel.com> > [dan.j.williams@intel.com: kill unnecessary client refcounting] > Signed-off-by: Dan Williams <dan.j.williams@intel.com> > Signed-off-by: Shannon Nelson <shannon.nelson@intel.com> > Cc: stable@kernel.org
I don't see this in Linus's tree yet, right?
When it goes in, can you resend it to the stable@kernel.org people?
thanks,
greg k-h - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |