Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit bfd2e29f authored by Russell King's avatar Russell King
Browse files

[ARM] Fix test for unimplemented ARM syscalls



The existing test always failed since 'no' was always greater than
0x7ff.

Signed-off-by: default avatarRussell King <rmk+kernel@arm.linux.org.uk>
parent 54189831
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;
	}