]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
x86/mm: Initialize pmd_idx in page_table_range_init_count()
authorMinfei Huang <mnfhuang@gmail.com>
Sun, 12 Jul 2015 12:18:42 +0000 (20:18 +0800)
committerThomas Gleixner <tglx@linutronix.de>
Mon, 20 Jul 2015 21:14:47 +0000 (23:14 +0200)
commit9962eea9e55f797f05f20ba6448929cab2a9f018
tree7a5f5a06d2cf639784ec88b770990c32c594fd97
parent7ea402d01cb68224972dde3ae68bd41131b1c3a1
x86/mm: Initialize pmd_idx in page_table_range_init_count()

The variable pmd_idx is not initialized for the first iteration of the
for loop.

Assign the proper value which indexes the start address.

Fixes: 719272c45b82 'x86, mm: only call early_ioremap_page_table_range_init() once'
Signed-off-by: Minfei Huang <mnfhuang@gmail.com>
Cc: tony.luck@intel.com
Cc: wangnan0@huawei.com
Cc: david.vrabel@citrix.com
Reviewed-by: yinghai@kernel.org
Link: http://lkml.kernel.org/r/1436703522-29552-1-git-send-email-mhuang@redhat.com
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
arch/x86/mm/init_32.c