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] [thread-next>] [day] [month] [year] [list]
Message-ID: <20130917154921.GH3409@console-pimps.org>
Date:	Tue, 17 Sep 2013 16:49:21 +0100
From:	Matt Fleming <matt@...sole-pimps.org>
To:	Dave Young <dyoung@...hat.com>
Cc:	linux-efi@...r.kernel.org, linux-kernel@...r.kernel.org,
	vgoyal@...hat.com
Subject: Re: [PATCH] EFI: use nr_tables param directly in efi_config_init

On Thu, 12 Sep, at 04:45:28PM, Dave Young wrote:
> efi_config_init has the parameter nr_tables. Just use it instead of
> dereference efi.systab->nr_tables.
> 
> Signed-off-by: Dave Young <dyoung@...hat.com>
> ---
>  arch/x86/platform/efi/efi.c |    7 +++----
>  1 file changed, 3 insertions(+), 4 deletions(-)
> 
> --- linux-2.6.orig/arch/x86/platform/efi/efi.c
> +++ linux-2.6/arch/x86/platform/efi/efi.c
> @@ -599,7 +599,7 @@ static int __init efi_config_init(u64 ta
>  
>  	tablep = config_tables;
>  	pr_info("");
> -	for (i = 0; i < efi.systab->nr_tables; i++) {
> +	for (i = 0; i < nr_tables; i++) {
>  		efi_guid_t guid;
>  		unsigned long table;
>  
> @@ -612,8 +612,7 @@ static int __init efi_config_init(u64 ta
>  			if (table64 >> 32) {
>  				pr_cont("\n");
>  				pr_err("Table located above 4GB, disabling EFI.\n");
> -				early_iounmap(config_tables,
> -					      efi.systab->nr_tables * sz);
> +				early_iounmap(config_tables, nr_tables * sz);
>  				return -EINVAL;
>  			}
>  #endif
> @@ -648,7 +647,7 @@ static int __init efi_config_init(u64 ta
>  		tablep += sz;
>  	}
>  	pr_cont("\n");
> -	early_iounmap(config_tables, efi.systab->nr_tables * sz);
> +	early_iounmap(config_tables, nr_tables * sz);
>  	return 0;
>  }

Thanks Dave, but this patch should no longer be necessary because of the
changes sitting in the 'next' branch at,

  git://git.kernel.org/pub/scm/linux/kernel/git/mfleming/efi.git

-- 
Matt Fleming, 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