public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Pengutronix <s.hauer@pengutronix.de>
To: Axel Lin <axel.lin@gmail.com>
Cc: linux-kernel <linux-kernel@vger.kernel.org>,
	Dan Williams <dan.j.williams@intel.com>,
	Thiago Farina <tfransosi@gmail.com>
Subject: Re: [PATCH Resend] dma: imx-dma: fix imxdma_probe error path
Date: Tue, 2 Nov 2010 08:40:38 +0100	[thread overview]
Message-ID: <20101102074038.GC6017@pengutronix.de> (raw)
In-Reply-To: <1288662971.20990.7.camel@mola>

On Tue, Nov 02, 2010 at 09:56:11AM +0800, Axel Lin wrote:
> Otherwise, the i variable 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>

> ---
> This resend only update the commit log.
> Regards,
> Axel
> 
>  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 f629e49..e53d438 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);
>  	}
> -- 
> 1.7.2
> 
> 
> 
> 

-- 
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

      reply	other threads:[~2010-11-02  7:40 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-11-02  1:56 [PATCH Resend] dma: imx-dma: fix imxdma_probe error path Axel Lin
2010-11-02  7:40 ` Pengutronix [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20101102074038.GC6017@pengutronix.de \
    --to=s.hauer@pengutronix.de \
    --cc=axel.lin@gmail.com \
    --cc=dan.j.williams@intel.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=tfransosi@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox