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 ecd1f158548e..9e6cb02cba64 100644 --- a/mm/nommu.c +++ b/mm/nommu.c | |||
| @@ -937,7 +937,7 @@ static int validate_mmap_request(struct file *file, | |||
| 937 | struct address_space *mapping; | 937 | struct address_space *mapping; |
| 938 | 938 | ||
| 939 | /* files must support mmap */ | 939 | /* files must support mmap */ |
| 940 | if (!file->f_op || !file->f_op->mmap) | 940 | if (!file->f_op->mmap) |
| 941 | return -ENODEV; | 941 | return -ENODEV; |
| 942 | 942 | ||
| 943 | /* work out if what we've got could possibly be shared | 943 | /* work out if what we've got could possibly be shared |
