linux-mips
[Top] [All Lists]

LTP testing

To: Ralf Baechle <ralf@oss.sgi.com>, "linux-mips@oss.sgi.com" <linux-mips@oss.sgi.com>
Subject: LTP testing
From: Carsten Langgaard <carstenl@mips.com>
Date: Tue, 25 Jun 2002 12:47:54 +0200
Sender: owner-linux-mips@oss.sgi.com
The next LTP failure is:
msync05     1  FAIL  :  msync() fails, unexpected errno:14, expected:
ENOMEM

This has also been fixed in the 2.4.19-pre4 patch.
See the attached patch below.

/Carsten



--
_    _ ____  ___   Carsten Langgaard   Mailto:carstenl@mips.com
|\  /|||___)(___   MIPS Denmark        Direct: +45 4486 5527
| \/ |||    ____)  Lautrupvang 4B      Switch: +45 4486 5555
  TECHNOLOGIES     2750 Ballerup       Fax...: +45 4486 5556
                   Denmark             http://www.mips.com


Index: mm/filemap.c
===================================================================
RCS file: /home/repository/sw/linux-2.4.18/mm/filemap.c,v
retrieving revision 1.1.1.1
diff -u -r1.1.1.1 filemap.c
--- mm/filemap.c        4 Mar 2002 11:13:34 -0000       1.1.1.1
+++ mm/filemap.c        25 Jun 2002 10:36:12 -0000
@@ -2179,18 +2179,18 @@
                goto out;
        /*
         * If the interval [start,end) covers some unmapped address ranges,
-        * just ignore them, but return -EFAULT at the end.
+        * just ignore them, but return -ENOMEM at the end.
         */
        vma = find_vma(current->mm, start);
        unmapped_error = 0;
        for (;;) {
                /* Still start < end. */
-               error = -EFAULT;
+               error = -ENOMEM;
                if (!vma)
                        goto out;
                /* Here start < vma->vm_end. */
                if (start < vma->vm_start) {
-                       unmapped_error = -EFAULT;
+                       unmapped_error = -ENOMEM;
                        start = vma->vm_start;
                }
                /* Here vma->vm_start <= start < vma->vm_end. */
<Prev in Thread] Current Thread [Next in Thread>