Commit 865e3845 authored by Tiwei Bie's avatar Tiwei Bie Committed by Johannes Berg
Browse files

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: d1254b12 ("uml: fix x86_64 core dump crash")
Signed-off-by: default avatarTiwei Bie <tiwei.btw@antgroup.com>
Link: https://patch.msgid.link/20240913023302.130300-1-tiwei.btw@antgroup.com


Signed-off-by: default avatarJohannes Berg <johannes.berg@intel.com>
parent 242fef36
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;
}