diff options
author | Axel Lin <axel.lin@gmail.com> | 2010-11-02 02:12:57 +0100 |
---|---|---|
committer | Dan Williams <dan.j.williams@intel.com> | 2010-12-03 10:39:03 +0100 |
commit | cbeae41888bddb2d8c23db281de5f38f4be6a9bb (patch) | |
tree | ab4a16f0652337986a5def2929e06865e9fbbfbe /drivers/dma/imx-dma.c | |
parent | Linux 2.6.37-rc4 (diff) | |
download | linux-cbeae41888bddb2d8c23db281de5f38f4be6a9bb.tar.xz linux-cbeae41888bddb2d8c23db281de5f38f4be6a9bb.zip |
dma: imx-dma: fix imxdma_probe error path
otherwise, i will be -1 inside the latest iteration of the while loop.
Signed-off-by: Axel Lin <axel.lin@gmail.com>
Acked-by: Sascha Hauer <s.hauer@pengutronix.de>
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
Diffstat (limited to 'drivers/dma/imx-dma.c')
-rw-r--r-- | drivers/dma/imx-dma.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/dma/imx-dma.c b/drivers/dma/imx-dma.c index f629e4961af5..e53d438142bb 100644 --- a/drivers/dma/imx-dma.c +++ b/drivers/dma/imx-dma.c @@ -379,7 +379,7 @@ static int __init imxdma_probe(struct platform_device *pdev) return 0; err_init: - while (i-- >= 0) { + while (--i >= 0) { struct imxdma_channel *imxdmac = &imxdma->channel[i]; imx_dma_free(imxdmac->imxdma_channel); } |