From: Russell King Date: Sun, 8 Nov 2009 20:05:28 +0000 (+0000) Subject: [ARM] Fix test for unimplemented ARM syscalls X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=bfd2e29f04e5f048ea62677811d1244badd6661e;p=openwrt%2Fstaging%2Fblogic.git [ARM] Fix test for unimplemented ARM syscalls The existing test always failed since 'no' was always greater than 0x7ff. Signed-off-by: Russell King --- diff --git a/arch/arm/kernel/traps.c b/arch/arm/kernel/traps.c index 95718a6b50a6..1bbda04a5380 100644 --- a/arch/arm/kernel/traps.c +++ b/arch/arm/kernel/traps.c @@ -573,7 +573,7 @@ asmlinkage int arm_syscall(int no, struct pt_regs *regs) if not implemented, rather than raising SIGILL. This way the calling program can gracefully determine whether a feature is supported. */ - if (no <= 0x7ff) + if ((no & 0xffff) <= 0x7ff) return -ENOSYS; break; }