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: <1984421.YzSJxzshgC@vostro.rjw.lan>
Date:	Tue, 26 Mar 2013 14:28:45 +0100
From:	"Rafael J. Wysocki" <rjw@...k.pl>
To:	Alexandru Gheorghiu <gheorghiuandru@...il.com>
Cc:	Len Brown <lenb@...nel.org>, linux-acpi@...r.kernel.org,
	linux-kernel@...r.kernel.org
Subject: Re: [PATCH] drivers: acpi: Used resource_size function

On Tuesday, March 12, 2013 10:53:02 AM Alexandru Gheorghiu wrote:
> Used resource_size function instead of explicit computation.
> 
> Signed-off-by: Alexandru Gheorghiu <gheorghiuandru@...il.com>

Applied to linux-pm.git/linux-next.

Thanks,
Rafael


> ---
>  drivers/acpi/osl.c |    2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/acpi/osl.c b/drivers/acpi/osl.c
> index 586e7e9..4d31748 100644
> --- a/drivers/acpi/osl.c
> +++ b/drivers/acpi/osl.c
> @@ -1555,7 +1555,7 @@ int acpi_check_resource_conflict(const struct resource *res)
>  	else
>  		space_id = ACPI_ADR_SPACE_SYSTEM_MEMORY;
>  
> -	length = res->end - res->start + 1;
> +	length = resource_size(res);
>  	if (acpi_enforce_resources != ENFORCE_RESOURCES_NO)
>  		warn = 1;
>  	clash = acpi_check_address_range(space_id, res->start, length, warn);
> 
-- 
I speak only for myself.
Rafael J. Wysocki, Intel Open Source Technology Center.
--
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