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: <200911251041.44776.florian@openwrt.org>
Date:	Wed, 25 Nov 2009 10:41:44 +0100
From:	Florian Fainelli <florian@...nwrt.org>
To:	Yoichi Yuasa <yuasa@...ux-mips.org>
Cc:	Richard Purdie <rpurdie@...ys.net>,
	Andrew Morton <akpm@...ux-foundation.org>,
	linux-kernel@...r.kernel.org
Subject: Re: [PATCH] leds-cobalt: use resource_size()

Hi Yoichi,

On Wednesday 25 November 2009 05:33:59 Yoichi Yuasa wrote:
> Signed-off-by: Yoichi Yuasa <yuasa@...ux-mips.org>
> Cc: Florian Fainelli <florian@...nwrt.org>

Acked-by: Florian Fainelli <florian@...nwrt.org>

> ---
>  drivers/leds/leds-cobalt-qube.c |    2 +-
>  drivers/leds/leds-cobalt-raq.c  |    2 +-
>  2 files changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/drivers/leds/leds-cobalt-qube.c
>  b/drivers/leds/leds-cobalt-qube.c index 8816806..de19753 100644
> --- a/drivers/leds/leds-cobalt-qube.c
> +++ b/drivers/leds/leds-cobalt-qube.c
> @@ -43,7 +43,7 @@ static int __devinit cobalt_qube_led_probe(struct
>  platform_device *pdev) if (!res)
>  		return -EBUSY;
> 
> -	led_port = ioremap(res->start, res->end - res->start + 1);
> +	led_port = ioremap(res->start, resource_size(res));
>  	if (!led_port)
>  		return -ENOMEM;
> 
> diff --git a/drivers/leds/leds-cobalt-raq.c
>  b/drivers/leds/leds-cobalt-raq.c index defc212..438d483 100644
> --- a/drivers/leds/leds-cobalt-raq.c
> +++ b/drivers/leds/leds-cobalt-raq.c
> @@ -84,7 +84,7 @@ static int __devinit cobalt_raq_led_probe(struct
>  platform_device *pdev) if (!res)
>  		return -EBUSY;
> 
> -	led_port = ioremap(res->start, res->end - res->start + 1);
> +	led_port = ioremap(res->start, resource_size(res));
>  	if (!led_port)
>  		return -ENOMEM;
> 

-- 
--
WBR, Florian
--
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