[PATCH] mmc: host: sdhci check parameters before call dma_free_coherent

2015-06-21 Thread Peng Fan
We should not call dma_free_coherent if host->adma_table is NULL, otherwise may trigger panic. >From DMA-API.txt: " void dma_free_coherent(struct device *dev, size_t size, void *cpu_addr, dma_addr_t dma_handle) Free a region of consistent memory you previously allocated. dev, s

Re: [PATCH] mmc: host: sdhci check parameters before call dma_free_coherent

2015-07-20 Thread Ulf Hansson
On 22 June 2015 at 09:04, Adrian Hunter wrote: > On 22/06/15 06:41, Peng Fan wrote: >> We should not call dma_free_coherent if host->adma_table is NULL, >> otherwise may trigger panic. >> >>>From DMA-API.txt: >> " >> void >> dma_free_coherent(struct device *dev, size_t size, void *cpu_addr, >>

Re: [PATCH] mmc: host: sdhci check parameters before call dma_free_coherent

2015-07-17 Thread Peng Fan
Hi, On Mon, Jun 22, 2015 at 10:04:22AM +0300, Adrian Hunter wrote: > On 22/06/15 06:41, Peng Fan wrote: > > We should not call dma_free_coherent if host->adma_table is NULL, > > otherwise may trigger panic. > > > >>From DMA-API.txt: > > " > > void > > dma_free_coherent(struct device *dev, size_t

Re: [PATCH] mmc: host: sdhci check parameters before call dma_free_coherent

2015-06-22 Thread Adrian Hunter
On 22/06/15 06:41, Peng Fan wrote: > We should not call dma_free_coherent if host->adma_table is NULL, > otherwise may trigger panic. > >>From DMA-API.txt: > " > void > dma_free_coherent(struct device *dev, size_t size, void *cpu_addr, > dma_addr_t dma_handle) > > Free a region