]> www.infradead.org Git - users/jedix/linux-maple.git/commit
um: Use correct data source in fpregs_legacy_set()
authorTiwei Bie <tiwei.btw@antgroup.com>
Fri, 6 Jun 2025 12:44:28 +0000 (20:44 +0800)
committerJohannes Berg <johannes.berg@intel.com>
Wed, 25 Jun 2025 07:26:33 +0000 (09:26 +0200)
commit8948941276024fcfb08fdb3d678867dc1f7b1c16
treef71f5676558a47bf510031b0c36cfaeadd61056c
parentbc4e2ae08183d9017f43bf88aa7cfdf84e76f573
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: b1e1bd2e6943 ("um: Add helper functions to get/set state for SECCOMP")
Signed-off-by: Tiwei Bie <tiwei.btw@antgroup.com>
Link: https://patch.msgid.link/20250606124428.148164-5-tiwei.btw@antgroup.com
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
arch/x86/um/ptrace.c