diff options
Diffstat (limited to 'mm')
-rw-r--r-- | mm/nommu.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/mm/nommu.c b/mm/nommu.c index 57ae6126b29a..92e1a47d1e52 100644 --- a/mm/nommu.c +++ b/mm/nommu.c | |||
@@ -1376,15 +1376,15 @@ unsigned long do_mmap_pgoff(struct file *file, | |||
1376 | if (capabilities & BDI_CAP_MAP_DIRECT) { | 1376 | if (capabilities & BDI_CAP_MAP_DIRECT) { |
1377 | addr = file->f_op->get_unmapped_area(file, addr, len, | 1377 | addr = file->f_op->get_unmapped_area(file, addr, len, |
1378 | pgoff, flags); | 1378 | pgoff, flags); |
1379 | if (IS_ERR((void *) addr)) { | 1379 | if (IS_ERR_VALUE(addr)) { |
1380 | ret = addr; | 1380 | ret = addr; |
1381 | if (ret != (unsigned long) -ENOSYS) | 1381 | if (ret != -ENOSYS) |
1382 | goto error_just_free; | 1382 | goto error_just_free; |
1383 | 1383 | ||
1384 | /* the driver refused to tell us where to site | 1384 | /* the driver refused to tell us where to site |
1385 | * the mapping so we'll have to attempt to copy | 1385 | * the mapping so we'll have to attempt to copy |
1386 | * it */ | 1386 | * it */ |
1387 | ret = (unsigned long) -ENODEV; | 1387 | ret = -ENODEV; |
1388 | if (!(capabilities & BDI_CAP_MAP_COPY)) | 1388 | if (!(capabilities & BDI_CAP_MAP_COPY)) |
1389 | goto error_just_free; | 1389 | goto error_just_free; |
1390 | 1390 | ||