tech-kern archive

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

Re: missing bus_dmamap_unload() in mpt_timeout()?



On Sun, Nov 24, 2013 at 06:44:32PM +0100, Edgar Fuß wrote:
> Further digging through mpt(4)'s timeout handling, I'm getting the impression 
> that there's a missing bus_dmamap_unload() for the data buffer 
> (for xs->datalen != 0).
> 
> However, I neither know whether that's doing any harm nor what happens in 
> case 
> the IOC is still using the buffer.

You shouln't bus_dmamap_unload() before stopping the IOC. But a missing
bus_dmamap_unload() can lead to memory leak.

-- 
Manuel Bouyer <bouyer%antioche.eu.org@localhost>
     NetBSD: 26 ans d'experience feront toujours la difference
--


Home | Main Index | Thread Index | Old Index