sh64: fix __NR_fgetxattr
authorDmitry V. Levin <ldv@altlinux.org>
Fri, 11 Dec 2015 21:41:06 +0000 (13:41 -0800)
committerBen Hutchings <ben@decadent.org.uk>
Wed, 30 Dec 2015 02:26:01 +0000 (02:26 +0000)
commit3953ba754ad4e00a58fbc20a9498c999ffe82f61
treeb6aa9012db1249cb71bcf04154cf56147d379eca
parent84349002e87adc896021a19db9f2253b874907b2
sh64: fix __NR_fgetxattr

commit 2d33fa1059da4c8e816627a688d950b613ec0474 upstream.

According to arch/sh/kernel/syscalls_64.S and common sense, __NR_fgetxattr
has to be defined to 259, but it doesn't.  Instead, it's defined to 269,
which is of course used by another syscall, __NR_sched_setaffinity in this
case.

This bug was found by strace test suite.

Signed-off-by: Dmitry V. Levin <ldv@altlinux.org>
Acked-by: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
[bwh: Backported to 3.2: adjust filename]
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
arch/sh/include/asm/unistd_64.h