mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-05-24 10:39:52 +00:00
[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>
This commit is contained in:
parent
5418983113
commit
bfd2e29f04
1 changed files with 1 additions and 1 deletions
|
@ -573,7 +573,7 @@ asmlinkage int arm_syscall(int no, struct pt_regs *regs)
|
||||||
if not implemented, rather than raising SIGILL. This
|
if not implemented, rather than raising SIGILL. This
|
||||||
way the calling program can gracefully determine whether
|
way the calling program can gracefully determine whether
|
||||||
a feature is supported. */
|
a feature is supported. */
|
||||||
if (no <= 0x7ff)
|
if ((no & 0xffff) <= 0x7ff)
|
||||||
return -ENOSYS;
|
return -ENOSYS;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue