Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Unverified Commit 160366c6 authored by Minfei Huang's avatar Minfei Huang Committed by Harsh Shandilya
Browse files

x86/mm: Initialize pmd_idx in page_table_range_init_count()



commit 9962eea9e55f797f05f20ba6448929cab2a9f018 upstream.

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: 719272c4 'x86, mm: only call early_ioremap_page_table_range_init() once'
Signed-off-by: default avatarMinfei Huang <mnfhuang@gmail.com>
Cc: tony.luck@intel.com
Cc: wangnan0@huawei.com
Cc: david.vrabel@citrix.com
Reviewed-by: default avatar <yinghai@kernel.org>
Link: http://lkml.kernel.org/r/1436703522-29552-1-git-send-email-mhuang@redhat.com


Signed-off-by: default avatarThomas Gleixner <tglx@linutronix.de>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 2decd186
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment