Skip to content

Commit 8948941

Browse files
btw616jmberg-intel
authored andcommitted
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: b1e1bd2 ("um: Add helper functions to get/set state for SECCOMP") Signed-off-by: Tiwei Bie <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Johannes Berg <[email protected]>
1 parent bc4e2ae commit 8948941

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

arch/x86/um/ptrace.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ static int fpregs_legacy_set(struct task_struct *target,
161161
from = kbuf;
162162
}
163163

164-
return um_fxsr_from_i387(fxsave, &buf);
164+
return um_fxsr_from_i387(fxsave, from);
165165
}
166166
#endif
167167

0 commit comments

Comments
 (0)