diff mbox

arm: set_memory_xx fixes patch missing?

Message ID 56CB2A6F.5060006@nextfour.com (mailing list archive)
State New, archived
Headers show

Commit Message

Mika Penttilä Feb. 22, 2016, 3:34 p.m. UTC
On 22.02.2016 17:09, Paolo Pisati wrote:
> What's happened to the arm side of this patch:
>
> http://lkml.iu.edu/hypermail/linux/kernel/1601.2/04934.html
>
> the arm64 code is already in Linus's tree, while it seems like the arm part was
> lost and forgotten, and i don't see it in rmk's patch queue.

Hi,

Yes, it for sure should go in, please apply:

----------------------------------------------------
From: Mika Penttilä <mika.penttila@nextfour.com>

Allow zero size updates. This makes set_memory_xx() consistent with x86, s390 and arm64.

Signed-off-by: Mika Penttilä mika.penttila@nextfour.com

---
 arch/arm/mm/pageattr.c | 3 +++
 1 file changed, 3 insertions(+)

-- 1.9.1
diff mbox

Patch

diff --git a/arch/arm/mm/pageattr.c b/arch/arm/mm/pageattr.c
index be7fe4b..9edf6b0 100644
--- a/arch/arm/mm/pageattr.c
+++ b/arch/arm/mm/pageattr.c
@@ -49,6 +49,9 @@  static int change_memory_common(unsigned long addr, int numpages,
 		WARN_ON_ONCE(1);
 	}
 
+	if (!numpages)
+		return 0;
+
 	if (start < MODULES_VADDR || start >= MODULES_END)
 		return -EINVAL;