[PATCH 5.10 194/289] ARC: entry: fix off-by-one error in syscall number validation