summaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorRussell King <rmk+kernel@arm.linux.org.uk>2009-11-08 21:05:28 +0100
committerRussell King <rmk+kernel@arm.linux.org.uk>2009-11-08 21:05:28 +0100
commitbfd2e29f04e5f048ea62677811d1244badd6661e (patch)
tree5a5ab8855eb64e9431a9bb454f8225b0b7ef23ed /arch
parentMerge branch 'for-rmk' of git://git.marvell.com/orion (diff)
downloadlinux-bfd2e29f04e5f048ea62677811d1244badd6661e.tar.xz
linux-bfd2e29f04e5f048ea62677811d1244badd6661e.zip
[ARM] Fix test for unimplemented ARM syscalls
The existing test always failed since 'no' was always greater than 0x7ff. Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'arch')
-rw-r--r--arch/arm/kernel/traps.c2
1 files changed, 1 insertions, 1 deletions
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;
}