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

um: Use correct data source in fpregs_legacy_set()



Read from the buffer pointed to by 'from' instead of '&buf', as
'buf' contains no valid data when 'ubuf' is NULL.

Fixes: b1e1bd2e ("um: Add helper functions to get/set state for SECCOMP")
Signed-off-by: default avatarTiwei Bie <tiwei.btw@antgroup.com>
Link: https://patch.msgid.link/20250606124428.148164-5-tiwei.btw@antgroup.com


Signed-off-by: default avatarJohannes Berg <johannes.berg@intel.com>
parent bc4e2ae0
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -161,7 +161,7 @@ static int fpregs_legacy_set(struct task_struct *target,
		from = kbuf;
	}

	return um_fxsr_from_i387(fxsave, &buf);
	return um_fxsr_from_i387(fxsave, from);
}
#endif