summaryrefslogtreecommitdiff
path: root/arch
diff options
context:
space:
mode:
authorTiwei Bie <tiwei.btw@antgroup.com>2024-09-13 10:33:02 +0800
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2024-12-14 19:51:19 +0100
commita6294d6010754c6066c42b5b38d3fc4915228200 (patch)
tree54600a0fd07b163e850bf7142748466299ac07f1 /arch
parent1bd118c5f887802cef2d9ba0d1917258667f1cae (diff)
downloadlinux-a6294d6010754c6066c42b5b38d3fc4915228200.tar.gz
linux-a6294d6010754c6066c42b5b38d3fc4915228200.tar.bz2
linux-a6294d6010754c6066c42b5b38d3fc4915228200.zip
um: Fix the return value of elf_core_copy_task_fpregs
[ Upstream commit 865e3845eeaa21e9a62abc1361644e67124f1ec0 ] This function is expected to return a boolean value, which should be true on success and false on failure. Fixes: d1254b12c93e ("uml: fix x86_64 core dump crash") Signed-off-by: Tiwei Bie <tiwei.btw@antgroup.com> Link: https://patch.msgid.link/20240913023302.130300-1-tiwei.btw@antgroup.com Signed-off-by: Johannes Berg <johannes.berg@intel.com> Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'arch')
-rw-r--r--arch/um/kernel/process.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/um/kernel/process.c b/arch/um/kernel/process.c
index 4b6179a8a3e8..8d84684000b0 100644
--- a/arch/um/kernel/process.c
+++ b/arch/um/kernel/process.c
@@ -403,6 +403,6 @@ int elf_core_copy_fpregs(struct task_struct *t, elf_fpregset_t *fpu)
{
int cpu = current_thread_info()->cpu;
- return save_i387_registers(userspace_pid[cpu], (unsigned long *) fpu);
+ return save_i387_registers(userspace_pid[cpu], (unsigned long *) fpu) == 0;
}