diff options
author | Russell King <rmk+kernel@arm.linux.org.uk> | 2009-11-08 15:05:28 -0500 |
---|---|---|
committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2009-11-08 15:05:28 -0500 |
commit | bfd2e29f04e5f048ea62677811d1244badd6661e (patch) | |
tree | 5a5ab8855eb64e9431a9bb454f8225b0b7ef23ed /arch/arm/kernel | |
parent | 5418983113f8cc4d984c7ef847bec5bdd0d90032 (diff) |
[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/arm/kernel')
-rw-r--r-- | arch/arm/kernel/traps.c | 2 |
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) | |||
573 | if not implemented, rather than raising SIGILL. This | 573 | if not implemented, rather than raising SIGILL. This |
574 | way the calling program can gracefully determine whether | 574 | way the calling program can gracefully determine whether |
575 | a feature is supported. */ | 575 | a feature is supported. */ |
576 | if (no <= 0x7ff) | 576 | if ((no & 0xffff) <= 0x7ff) |
577 | return -ENOSYS; | 577 | return -ENOSYS; |
578 | break; | 578 | break; |
579 | } | 579 | } |