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

Skip to content
Commit 7a8ab31b authored by Jon Medhurst (Tixy)'s avatar Jon Medhurst (Tixy) Committed by Arve Hjønnevåg
Browse files

ARM: mm: Allow an empty PMD in alloc_init_pte()



The Android patch titled "ARM: allow the kernel text section to
be made read-only" modifies alloc_init_pte() and adds a BUG_ON
to detect the case where a section mapping is being overwritten.
However the test doesn't allow for the legitimate case where the
PMD is empty, as can happen for kernels built with CONFIG_ARM_LPAE.
So extend the test to allow this.

Change-Id: I28eeaefd856bae63a5532980e41e0fd4d8922e79
Signed-off-by: default avatarJon Medhurst <tixy@linaro.org>
Signed-off-by: default avatarJohn Stultz <john.stultz@linaro.org>
parent 22eee1aa
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