Jingchang Lu 178c81e58e dma: fsl-edma: fix static checker warning of NULL dereference
The static checker reports following warning:
	drivers/dma/fsl-edma.c:732 fsl_edma_xlate()
	error: we previously assumed 'chan' could be null (see line 737)
The changes of the loop cursor in the iteration may result in
NULL dereference when dma_get_slave_channel failed but loop
will continue. So use list_for_each_entry_safe() instead of
list_for_each_entry() to against this.

Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Jingchang Lu <b35083@freescale.com>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
2014-03-06 20:43:57 +05:30
..
2014-03-06 11:35:24 +05:30
2013-01-07 17:36:37 +01:00
2014-01-20 14:58:03 +05:30
2013-12-12 22:43:41 -08:00
2013-10-31 22:36:13 +05:30
2012-09-01 08:57:12 -07:00
2014-01-20 13:53:20 +05:30
2013-09-02 11:59:58 +05:30
2013-12-12 22:43:41 -08:00