x86: remove flush_agp_mappings()
[sfrench/cifs-2.6.git] / fs / compat.c
index 15078ce4c04a3b385de62b3a4d4a2ce498ca07b0..5216c3fd751771ab4349753f68395b6daba74063 100644 (file)
@@ -1104,10 +1104,6 @@ static ssize_t compat_do_readv_writev(int type, struct file *file,
        if (ret < 0)
                goto out;
 
-       ret = security_file_permission(file, type == READ ? MAY_READ:MAY_WRITE);
-       if (ret)
-               goto out;
-
        fnv = NULL;
        if (type == READ) {
                fn = file->f_op->read;