linux-mmc.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Anton Vorontsov <cbouatmailru@gmail.com>
To: Haijun Zhang <Haijun.Zhang@freescale.com>
Cc: linux-mmc@vger.kernel.org,
	Jerry Huang <Chang-Ming.Huang@freescale.com>,
	Chris Ball <cjb@laptop.org>
Subject: Re: [PATCH] Powerpc eSDHC: Convert the cmd_timeou_ms to u64 to avoid overflow
Date: Mon, 26 Nov 2012 01:12:12 -0800	[thread overview]
Message-ID: <20121126091212.GB11065@lizard> (raw)
In-Reply-To: <1353918959-12146-1-git-send-email-Haijun.Zhang@freescale.com>

On Mon, Nov 26, 2012 at 04:35:58PM +0800, Haijun Zhang wrote:
> Convert the cmd_timeou_ms to u64 to avoid overflow
> 
> Signed-off-by: Jerry Huang <Chang-Ming.Huang@freescale.com>
> Signed-off-by: Haijun Zhang <Haijun.Zhang@freescale.com>

Reviewed-by: Anton Vorontsov <cbouatmailru@gmail.com>

But I think you should merge the two patches...

Thanks,

> CC: Chris Ball <cjb@laptop.org>
> ---
>  drivers/mmc/card/block.c |    3 ++-
>  1 files changed, 2 insertions(+), 1 deletions(-)
> 
> diff --git a/drivers/mmc/card/block.c b/drivers/mmc/card/block.c
> index 21056b9..51903de 100644
> --- a/drivers/mmc/card/block.c
> +++ b/drivers/mmc/card/block.c
> @@ -469,7 +469,8 @@ static int mmc_blk_ioctl_cmd(struct block_device *bdev,
>  			 *     mrq.data = NULL;
>  			 *     cmd.cmd_timeout = idata->ic.cmd_timeout_ms;
>  			 */
> -			data.timeout_ns = idata->ic.cmd_timeout_ms * 1000000;
> +			data.timeout_ns = (u64)idata->ic.cmd_timeout_ms *
> +						1000000;
>  		}
>  
>  		mrq.data = &data;
> -- 
> 1.7.0.4

  parent reply	other threads:[~2012-11-26  9:15 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-11-26  8:35 [PATCH] Powerpc eSDHC: Convert the cmd_timeou_ms to u64 to avoid overflow Haijun Zhang
2012-11-26  8:35 ` [PATCH] Use u64 to calculate the timeout value " Haijun Zhang
2012-11-26  9:09   ` Anton Vorontsov
2012-11-26  9:12 ` Anton Vorontsov [this message]
2012-11-26  9:35   ` [PATCH] Powerpc eSDHC: Convert the cmd_timeou_ms to u64 " Zhang Haijun-B42677

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=20121126091212.GB11065@lizard \
    --to=cbouatmailru@gmail.com \
    --cc=Chang-Ming.Huang@freescale.com \
    --cc=Haijun.Zhang@freescale.com \
    --cc=cjb@laptop.org \
    --cc=linux-mmc@vger.kernel.org \
    /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;
as well as URLs for NNTP newsgroup(s).