Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1317176

Re: [PATCH 2/4] arm: let set_memory_xx(addr, 0) succeed.

From Laura Abbott <labbott@redhat.com>
Newsgroups linux.kernel
Subject Re: [PATCH 2/4] arm: let set_memory_xx(addr, 0) succeed.
Date 2016-01-25 19:50 +0100
Message-ID <qUUn8-8cw-13@gated-at.bofh.it> (permalink)
References <qU7Z8-4tS-3@gated-at.bofh.it> <qU7Z8-4tS-17@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On 01/23/2016 07:05 AM, mika.penttila@nextfour.com wrote:
> 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/arm/mm/pageattr.c | 3 +++
>   1 file changed, 3 insertions(+)
>
> 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;
>
>

Reviewed-by: Laura Abbott <labbott@redhat.com>

Back to linux.kernel | Previous | Next — Previous in thread | Find similar | Unroll thread


Thread

[PATCH 0/4] set_memory_xx fixes <mika.penttila@nextfour.com> - 2016-01-23 16:10 +0100
  [PATCH 1/4] arm: Fix wrong bounds check. <mika.penttila@nextfour.com> - 2016-01-23 16:10 +0100
    Re: [PATCH 1/4] arm: Fix wrong bounds check. Laura Abbott <labbott@redhat.com> - 2016-01-25 19:40 +0100
  [PATCH 2/4] arm: let set_memory_xx(addr, 0) succeed. <mika.penttila@nextfour.com> - 2016-01-23 16:10 +0100
    Re: [PATCH 2/4] arm: let set_memory_xx(addr, 0) succeed. Laura Abbott <labbott@redhat.com> - 2016-01-25 19:50 +0100

csiph-web