]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commit
x86/mm/64: Rename the register_page_bootmem_memmap() 'size' parameter to 'nr_pages'
authorBaoquan He <bhe@redhat.com>
Sat, 28 Oct 2017 01:30:38 +0000 (09:30 +0800)
committerKleber Sacilotto de Souza <kleber.souza@canonical.com>
Sat, 6 Jan 2018 12:22:44 +0000 (13:22 +0100)
commitd73ad1d31ef8a44c6e5977c5123cbaa6d02e2035
tree6f960f281b9fe8ea49465afd8de1c05201d0fb1e
parentd945957924e9b1a469516b4029fd384138c2cb69
x86/mm/64: Rename the register_page_bootmem_memmap() 'size' parameter to 'nr_pages'

CVE-2017-5754

register_page_bootmem_memmap()'s 3rd 'size' parameter is named
in a somewhat misleading fashion - rename it to 'nr_pages' which
makes the units of it much clearer.

Meanwhile rename the existing local variable 'nr_pages' to
'nr_pmd_pages', a more expressive name, to avoid conflict with
new function parameter 'nr_pages'.

(Also clean up the unnecessary parentheses in which get_order() is called.)

Signed-off-by: Baoquan He <bhe@redhat.com>
Acked-by: Thomas Gleixner <tglx@linutronix.de>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: akpm@linux-foundation.org
Link: http://lkml.kernel.org/r/1509154238-23250-1-git-send-email-bhe@redhat.com
Signed-off-by: Ingo Molnar <mingo@kernel.org>
(cherry picked from commit 15670bfe19905b1dcbb63137f40d718b59d84479)
Signed-off-by: Andy Whitcroft <apw@canonical.com>
Signed-off-by: Kleber Sacilotto de Souza <kleber.souza@canonical.com>
arch/x86/mm/init_64.c
include/linux/mm.h