mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-12-29 09:16:33 +00:00
um: Fix the return value of elf_core_copy_task_fpregs
[ Upstream commit865e3845ee
] This function is expected to return a boolean value, which should be true on success and false on failure. Fixes:d1254b12c9
("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>
This commit is contained in:
parent
4fbbee6fa5
commit
8ff07524ca
@ -396,6 +396,6 @@ int elf_core_copy_fpregs(struct task_struct *t, elf_fpregset_t *fpu)
|
|||||||
{
|
{
|
||||||
int cpu = current_thread_info()->cpu;
|
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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user