]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
sh64: fix __NR_fgetxattr
authorDmitry V. Levin <ldv@altlinux.org>
Fri, 11 Dec 2015 21:41:06 +0000 (13:41 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 17 Feb 2016 20:34:35 +0000 (12:34 -0800)
commitaaebbf190d01323265bc3430a033d928b2849b52
tree7a1cde8fe9076a041bc0ffd64916aa737408df40
parente25c03af5c7b615e411b4ad9503e8227ecab910c
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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/sh/include/uapi/asm/unistd_64.h