Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1315651
| From | <mika.penttila@nextfour.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | [PATCH 3/4] arm64: let set_memory_xx(addr, 0) succeed. |
| Date | 2016-01-23 16:10 +0100 |
| Message-ID | <qU7Z8-4tS-1@gated-at.bofh.it> (permalink) |
| References | <qU7Z8-4tS-3@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
From: Mika Penttilä <mika.penttila@nextfour.com> This makes set_memory_xx() consistent with x86. Signed-off-by: Mika Penttilä mika.penttila@nextfour.com --- arch/arm64/mm/pageattr.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/arm64/mm/pageattr.c b/arch/arm64/mm/pageattr.c index 3571c73..52220dd 100644 --- a/arch/arm64/mm/pageattr.c +++ b/arch/arm64/mm/pageattr.c @@ -51,6 +51,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; -- 1.9.1
Back to linux.kernel | Previous | Next — Next in thread | Find similar | Unroll thread
[PATCH 3/4] arm64: let set_memory_xx(addr, 0) succeed. <mika.penttila@nextfour.com> - 2016-01-23 16:10 +0100
Re: [PATCH 3/4] arm64: let set_memory_xx(addr, 0) succeed. Laura Abbott <labbott@redhat.com> - 2016-01-25 19:50 +0100
Re: [PATCH 3/4] arm64: let set_memory_xx(addr, 0) succeed. David Rientjes <rientjes@google.com> - 2016-01-26 03:40 +0100
csiph-web