[ARM] 2951/1: fix wrong comment
authorNicolas Pitre <nico@cam.org>
Tue, 4 Oct 2005 22:17:52 +0000 (23:17 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Tue, 4 Oct 2005 22:17:52 +0000 (23:17 +0100)
Patch from Nicolas Pitre

The cmpxchg emulation syscall needs write access.

Signed-off-by: Nicolas Pitre <nico@cam.org>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/kernel/traps.c

index e7d22dbcb691e1e4444f94db0ab5da5b45b8731c..f6de76e0a45d388e1974f2015f2e3ba7de6c6094 100644 (file)
@@ -504,7 +504,7 @@ asmlinkage int arm_syscall(int no, struct pt_regs *regs)
 
                bad_access:
                spin_unlock(&mm->page_table_lock);
-               /* simulate a read access fault */
+               /* simulate a write access fault */
                do_DataAbort(addr, 15 + (1 << 11), regs);
                return -1;
        }