Revision 059bca46 bsd-user/mmap.c

b/bsd-user/mmap.c
240 240
           possible while it is a shared mapping */
241 241
        if ((flags & TARGET_BSD_MAP_FLAGMASK) == MAP_SHARED &&
242 242
            (prot & PROT_WRITE))
243
            return -EINVAL;
243
            return -1;
244 244

  
245 245
        /* adjust protection to be able to read */
246 246
        if (!(prot1 & PROT_WRITE))

Also available in: Unified diff