diff options
| -rw-r--r-- | arch/s390/mm/gmap.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/s390/mm/gmap.c b/arch/s390/mm/gmap.c index 69247b4dcc43..cace818d86eb 100644 --- a/arch/s390/mm/gmap.c +++ b/arch/s390/mm/gmap.c | |||
| @@ -23,7 +23,7 @@ | |||
| 23 | /** | 23 | /** |
| 24 | * gmap_alloc - allocate a guest address space | 24 | * gmap_alloc - allocate a guest address space |
| 25 | * @mm: pointer to the parent mm_struct | 25 | * @mm: pointer to the parent mm_struct |
| 26 | * @limit: maximum size of the gmap address space | 26 | * @limit: maximum address of the gmap address space |
| 27 | * | 27 | * |
| 28 | * Returns a guest address space structure. | 28 | * Returns a guest address space structure. |
| 29 | */ | 29 | */ |
| @@ -292,7 +292,7 @@ int gmap_map_segment(struct gmap *gmap, unsigned long from, | |||
| 292 | if ((from | to | len) & (PMD_SIZE - 1)) | 292 | if ((from | to | len) & (PMD_SIZE - 1)) |
| 293 | return -EINVAL; | 293 | return -EINVAL; |
| 294 | if (len == 0 || from + len < from || to + len < to || | 294 | if (len == 0 || from + len < from || to + len < to || |
| 295 | from + len > TASK_MAX_SIZE || to + len > gmap->asce_end) | 295 | from + len - 1 > TASK_MAX_SIZE || to + len - 1 > gmap->asce_end) |
| 296 | return -EINVAL; | 296 | return -EINVAL; |
| 297 | 297 | ||
| 298 | flush = 0; | 298 | flush = 0; |
