summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--arch/um/os-Linux/start_up.c4
-rw-r--r--arch/x86/um/os-Linux/mcontext.c2
2 files changed, 1 insertions, 5 deletions
diff --git a/arch/um/os-Linux/start_up.c b/arch/um/os-Linux/start_up.c
index 49015be1aaaf..a827c2e01aa5 100644
--- a/arch/um/os-Linux/start_up.c
+++ b/arch/um/os-Linux/start_up.c
@@ -296,10 +296,6 @@ static bool __init init_seccomp(void)
int n;
unsigned long sp;
- /* doesn't work on 32-bit right now */
- if (!IS_ENABLED(CONFIG_64BIT))
- return false;
-
/*
* We check that we can install a seccomp filter and then exit(0)
* from a trapped syscall.
diff --git a/arch/x86/um/os-Linux/mcontext.c b/arch/x86/um/os-Linux/mcontext.c
index e661fdc44db9..a21403df6663 100644
--- a/arch/x86/um/os-Linux/mcontext.c
+++ b/arch/x86/um/os-Linux/mcontext.c
@@ -231,7 +231,7 @@ int set_stub_state(struct uml_pt_regs *regs, struct stub_data *data,
xstate_size = fp_size;
#endif
- memcpy(fpstate_stub, &regs->fp, fp_size);
+ memcpy(xstate_stub, &regs->fp, xstate_size);
#ifdef __i386__
/*