[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <56A66C6B.7000806@redhat.com>
Date: Mon, 25 Jan 2016 10:41:47 -0800
From: Laura Abbott <labbott@...hat.com>
To: mika.penttila@...tfour.com, linux-kernel@...r.kernel.org
Cc: linux-mm@...ck.org, rientjes@...gle.com, linux@....linux.org.uk,
"linux-arm-kernel@...ts.infradead.org >> linux-arm-kernel"
<linux-arm-kernel@...ts.infradead.org>
Subject: Re: [PATCH 2/4] arm: let set_memory_xx(addr, 0) succeed.
On 01/23/2016 07:05 AM, mika.penttila@...tfour.com wrote:
> From: Mika Penttilä <mika.penttila@...tfour.com>
>
> This makes set_memory_xx() consistent with x86.
>
> Signed-off-by: Mika Penttilä mika.penttila@...tfour.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@...hat.com>
Powered by blists - more mailing lists