lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20100105190325.GI4274@sortiz.org>
Date:	Tue, 5 Jan 2010 20:03:25 +0100
From:	Samuel Ortiz <sameo@...ux.intel.com>
To:	H Hartley Sweeten <hartleys@...ionengravers.com>
Cc:	kernel list <linux-kernel@...r.kernel.org>, ian@...menth.co.uk
Subject: Re: [PATCH] tc6393xb.c: use resource_size()

Hi Hartley,

On Fri, Dec 11, 2009 at 07:11:13PM -0500, H Hartley Sweeten wrote:
> Use resource_size() for ioremap.
Patch applied too, many thanks.


> Signed-off-by: H Hartley Sweeten <hsweeten@...ionengravers.com>
> Cc: Ian Molton <ian@...menth.co.uk>
> Cc: Samuel Ortiz <sameo@...ux.intel.com>
> 
> ---
> 
> diff --git a/drivers/mfd/tc6393xb.c b/drivers/mfd/tc6393xb.c
> index 1429a73..50b1610 100644
> --- a/drivers/mfd/tc6393xb.c
> +++ b/drivers/mfd/tc6393xb.c
> @@ -610,7 +610,7 @@ static int __devinit tc6393xb_probe(struct platform_device *dev)
>  	if (ret)
>  		goto err_request_scr;
>  
> -	tc6393xb->scr = ioremap(rscr->start, rscr->end - rscr->start + 1);
> +	tc6393xb->scr = ioremap(rscr->start, resource_size(rscr));
>  	if (!tc6393xb->scr) {
>  		ret = -ENOMEM;
>  		goto err_ioremap; 

-- 
Intel Open Source Technology Centre
http://oss.intel.com/
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ