From: Tiwei Bie Date: Fri, 13 Sep 2024 02:33:02 +0000 (+0800) Subject: um: Fix the return value of elf_core_copy_task_fpregs X-Git-Tag: v6.13-rc1~18^2~58 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=865e3845eeaa21e9a62abc1361644e67124f1ec0;p=thirdparty%2Fkernel%2Flinux.git um: Fix the return value of elf_core_copy_task_fpregs 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 Link: https://patch.msgid.link/20240913023302.130300-1-tiwei.btw@antgroup.com Signed-off-by: Johannes Berg --- diff --git a/arch/um/kernel/process.c b/arch/um/kernel/process.c index be2856af6d4c3..9c6cf03ed02b0 100644 --- a/arch/um/kernel/process.c +++ b/arch/um/kernel/process.c @@ -292,6 +292,6 @@ int elf_core_copy_task_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; }