[PATCH 4.14 276/323] ARC: entry: fix off-by-one error in syscall number validation