aboutsummaryrefslogtreecommitdiffstats
path: root/arch/s390/mm
diff options
context:
space:
mode:
Diffstat (limited to 'arch/s390/mm')
-rw-r--r--arch/s390/mm/gup.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/s390/mm/gup.c b/arch/s390/mm/gup.c
index 8b8285310b5..16fb3c1615d 100644
--- a/arch/s390/mm/gup.c
+++ b/arch/s390/mm/gup.c
@@ -229,7 +229,7 @@ int get_user_pages_fast(unsigned long start, int nr_pages, int write,
229 addr = start; 229 addr = start;
230 len = (unsigned long) nr_pages << PAGE_SHIFT; 230 len = (unsigned long) nr_pages << PAGE_SHIFT;
231 end = start + len; 231 end = start + len;
232 if (end < start) 232 if ((end < start) || (end > TASK_SIZE))
233 goto slow_irqon; 233 goto slow_irqon;
234 234
235 /* 235 /*