]> git.baikalelectronics.ru Git - kernel.git/commit
x86: fix sys_sigreturn() return type to be long, not unsigned long
authorDominik Brodowski <linux@dominikbrodowski.net>
Thu, 22 Mar 2018 07:29:36 +0000 (08:29 +0100)
committerDominik Brodowski <linux@dominikbrodowski.net>
Mon, 2 Apr 2018 18:16:13 +0000 (20:16 +0200)
commit2a22b9d3f2cb56342e7589f57ee79bc29d7b07f4
treef9a1b30eb48b0651897f043724b3ae3be62a7d8e
parent66bc7b2785c893bfa9227420db3711c676b50de8
x86: fix sys_sigreturn() return type to be long, not unsigned long

Same as with other system calls, sys_sigreturn() should return a value
of type long, not unsigned long. This also matches the behaviour for
IA32_EMULATION, see sys32_sigreturn() in arch/x86/ia32/ia32_signal.c .

Cc: Andi Kleen <ak@linux.intel.com>
Cc: Ingo Molnar <mingo@redhat.com>
Cc: Jiri Slaby <jslaby@suse.com>
Cc: x86@kernel.org
Cc: Michael Tautschnig <tautschn@amazon.co.uk>
Reviewed-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Dominik Brodowski <linux@dominikbrodowski.net>
arch/x86/include/asm/syscalls.h
arch/x86/kernel/signal.c