Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=3bb457af4fa86dceef57d7c3e959aff162457fdc
Commit:     3bb457af4fa86dceef57d7c3e959aff162457fdc
Parent:     cc650a7a9f5ebc3f9290a8e20e3f55b4f52f849e
Author:     Kyle McMartin <[EMAIL PROTECTED]>
AuthorDate: Sun Jun 3 17:47:00 2007 -0400
Committer:  Kyle McMartin <[EMAIL PROTECTED]>
CommitDate: Sun Jun 3 17:53:45 2007 -0400

    [PARISC] Fix bug when syscall nr is __NR_Linux_syscalls
    
    The bug was that we were comparing __NR_syscalls to be greater or equal
    to the syscall number stored in %r20. __NR_syscalls is one greater than
    the last syscall though, so we're loading one entry beyond the end of the
    syscall table, and trying to jump to it.
    
    Fix this by only checking that we're greater, alternatively, we could
    have compared to (__NR_Linux_syscalls - 1)
    
    Signed-off-by: Kyle McMartin <[EMAIL PROTECTED]>
---
 arch/parisc/kernel/syscall.S |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/arch/parisc/kernel/syscall.S b/arch/parisc/kernel/syscall.S
index 91b2a48..56f6231 100644
--- a/arch/parisc/kernel/syscall.S
+++ b/arch/parisc/kernel/syscall.S
@@ -198,7 +198,7 @@ linux_gateway_entry:
        ldil    L%sys_call_table, %r1
        ldo     R%sys_call_table(%r1), %r19
 #endif 
-       comiclr,>>=     __NR_Linux_syscalls, %r20, %r0
+       comiclr,>>      __NR_Linux_syscalls, %r20, %r0
        b,n     .Lsyscall_nosys
        
        LDREGX  %r20(%r19), %r19
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to