X-Git-Url: http://git.monstr.eu/?p=linux-2.6-microblaze.git;a=blobdiff_plain;f=mm%2Fnommu.c;h=02d2427b8f9e87140c0ec98ff4535caa398af6c2;hp=0987d131bdfc7c31fb2d3de42d35c43f1ef9b414;hb=49624efa65ac9889f4e7c7b2452b2e6ce42ba37d;hpb=592ca09be8333bd226f50100328a905bfc377133 diff --git a/mm/nommu.c b/mm/nommu.c index 0987d131bdfc..02d2427b8f9e 100644 --- a/mm/nommu.c +++ b/mm/nommu.c @@ -826,9 +826,6 @@ static int validate_mmap_request(struct file *file, (file->f_mode & FMODE_WRITE)) return -EACCES; - if (locks_verify_locked(file)) - return -EAGAIN; - if (!(capabilities & NOMMU_MAP_DIRECT)) return -ENODEV;