summaryrefslogtreecommitdiffstats
path: root/arch/arm/mm
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2016-03-06 13:51:27 -0800
committerLinus Torvalds <torvalds@linux-foundation.org>2016-03-06 13:51:27 -0800
commitdd273a8071124c2235c45d2ca756acc90ca31ed3 (patch)
tree805bb65c17779ce1f16245b56d5e9ccbd7309f27 /arch/arm/mm
parent21b27a74ec0f4e52e001912c89570a49494705a2 (diff)
parentf474c8c857d996f34c39f66bbed23faaa739fad6 (diff)
downloadblackbird-op-linux-dd273a8071124c2235c45d2ca756acc90ca31ed3.tar.gz
blackbird-op-linux-dd273a8071124c2235c45d2ca756acc90ca31ed3.zip
Merge branch 'fixes' of git://ftp.arm.linux.org.uk/~rmk/linux-arm
Pull ARM fixes from Russell King: "Just two ARM fixes this time: one to fix the hyp-stub for older ARM CPUs, and another to fix the set_memory_xx() permission functions to deal with zero sizes correctly" * 'fixes' of git://ftp.arm.linux.org.uk/~rmk/linux-arm: ARM: 8544/1: set_memory_xx fixes ARM: 8534/1: virt: fix hyp-stub build for pre-ARMv7 CPUs
Diffstat (limited to 'arch/arm/mm')
-rw-r--r--arch/arm/mm/pageattr.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/arm/mm/pageattr.c b/arch/arm/mm/pageattr.c
index cf30daff8932..d19b1ad29b07 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;
OpenPOWER on IntegriCloud