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: <20100105190300.GH4274@sortiz.org>
Date:	Tue, 5 Jan 2010 20:03:01 +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] t7l66xb.c: use resource_size()

Hi Hartley,

On Fri, Dec 11, 2009 at 07:07:32PM -0500, H Hartley Sweeten wrote:
> Use resource_size() for ioremap.
Patch applied, 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/t7l66xb.c b/drivers/mfd/t7l66xb.c
> index 0a255c1..20bbd1d 100644
> --- a/drivers/mfd/t7l66xb.c
> +++ b/drivers/mfd/t7l66xb.c
> @@ -341,7 +341,7 @@ static int t7l66xb_probe(struct platform_device *dev)
>  	if (ret)
>  		goto err_request_scr;
>  
> -	t7l66xb->scr = ioremap(rscr->start, rscr->end - rscr->start + 1);
> +	t7l66xb->scr = ioremap(rscr->start, resource_size(rscr));
>  	if (!t7l66xb->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