Revision ee636500

b/linux-user/mmap.c
243 243
           possible while it is a shared mapping */
244 244
        if ((flags & MAP_TYPE) == MAP_SHARED &&
245 245
            (prot & PROT_WRITE))
246
            return -EINVAL;
246
            return -1;
247 247

  
248 248
        /* adjust protection to be able to read */
249 249
        if (!(prot1 & PROT_WRITE))

Also available in: Unified diff