diff options
Diffstat (limited to 'mm/nommu.c')
-rw-r--r-- | mm/nommu.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mm/nommu.c b/mm/nommu.c index 8740213b1647..a554e5a451cd 100644 --- a/mm/nommu.c +++ b/mm/nommu.c | |||
@@ -995,7 +995,7 @@ static int validate_mmap_request(struct file *file, | |||
995 | (file->f_mode & FMODE_WRITE)) | 995 | (file->f_mode & FMODE_WRITE)) |
996 | return -EACCES; | 996 | return -EACCES; |
997 | 997 | ||
998 | if (locks_verify_locked(file_inode(file))) | 998 | if (locks_verify_locked(file)) |
999 | return -EAGAIN; | 999 | return -EAGAIN; |
1000 | 1000 | ||
1001 | if (!(capabilities & BDI_CAP_MAP_DIRECT)) | 1001 | if (!(capabilities & BDI_CAP_MAP_DIRECT)) |