diff options
author | Jingchang Lu <b35083@freescale.com> | 2014-02-21 10:50:06 +0400 |
---|---|---|
committer | Vinod Koul <vinod.koul@intel.com> | 2014-03-06 19:13:57 +0400 |
commit | 178c81e58e91559fd2c6b1cae43c8f573a2ead36 (patch) | |
tree | 82f08ee72646dfd319c34021abe008544adafc9e /mm/mmap.c | |
parent | 7cbccb55f04bef306bc2840185ec8f986bd0df3c (diff) | |
download | linux-178c81e58e91559fd2c6b1cae43c8f573a2ead36.tar.xz |
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>
Diffstat (limited to 'mm/mmap.c')
0 files changed, 0 insertions, 0 deletions