[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <1453561543-14756-2-git-send-email-mika.penttila@nextfour.com>
Date: Sat, 23 Jan 2016 17:05:40 +0200
From: <mika.penttila@...tfour.com>
To: <linux-kernel@...r.kernel.org>
CC: <linux-mm@...ck.org>, <rientjes@...gle.com>,
<linux@....linux.org.uk>,
Mika Penttilä <mika.penttila@...tfour.com>
Subject: [PATCH 1/4] arm: Fix wrong bounds check.
From: Mika Penttilä <mika.penttila@...tfour.com>
Not related to this oops, but while at it, fix incorrect bounds check.
Signed-off-by: Mika Penttilä mika.penttila@...tfour.com
---
arch/arm/mm/pageattr.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/arm/mm/pageattr.c b/arch/arm/mm/pageattr.c
index cf30daf..be7fe4b 100644
--- a/arch/arm/mm/pageattr.c
+++ b/arch/arm/mm/pageattr.c
@@ -52,7 +52,7 @@ static int change_memory_common(unsigned long addr, int numpages,
if (start < MODULES_VADDR || start >= MODULES_END)
return -EINVAL;
- if (end < MODULES_VADDR || start >= MODULES_END)
+ if (end < MODULES_VADDR || end >= MODULES_END)
return -EINVAL;
data.set_mask = set_mask;
--
1.9.1
Powered by blists - more mailing lists