Re: [PATCH] dw-mmc: prevent the Null pointer dereference for dma_ops

2012-04-18 Thread Chris Ball
Hi, On Wed, Apr 18 2012, Will Newton wrote: > On Wed, Apr 18, 2012 at 7:42 AM, Jaehoon Chung wrote: >> Now, dma_ops is assumed that use the IDMAC. >> But if dma_ops is assigned the pdata->dma_ops, >> We didn't ensure that callback function is defined. >> >> If anything of callback didn't define,

Re: [PATCH] dw-mmc: prevent the Null pointer dereference for dma_ops

2012-04-18 Thread Will Newton
On Wed, Apr 18, 2012 at 7:42 AM, Jaehoon Chung wrote: > Now, dma_ops is assumed that use the IDMAC. > But if dma_ops is assigned the pdata->dma_ops, > We didn't ensure that callback function is defined. > > If anything of callback didn't define, then should be run the PIO mode. > > Signed-off-by:

[PATCH] dw-mmc: prevent the Null pointer dereference for dma_ops

2012-04-17 Thread Jaehoon Chung
Now, dma_ops is assumed that use the IDMAC. But if dma_ops is assigned the pdata->dma_ops, We didn't ensure that callback function is defined. If anything of callback didn't define, then should be run the PIO mode. Signed-off-by: Jaehoon Chung Signed-off-by: Kyungmin Park --- drivers/mmc/host/