summaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorSuresh Siddha <suresh.b.siddha@intel.com>2008-08-13 11:38:13 -0700
committerIngo Molnar <mingo@elte.hu>2008-08-14 10:56:06 +0200
commitee2b92a8201a40021ecd1aee6f0625dc03bacc54 (patch)
tree083f53ce26f20736968af50bf96da3ebb247b334 /arch
parentd4439087d316613548c70472291bf4ca646ce24b (diff)
downloadlinux-ee2b92a8201a40021ecd1aee6f0625dc03bacc54.tar.gz
linux-ee2b92a8201a40021ecd1aee6f0625dc03bacc54.tar.bz2
linux-ee2b92a8201a40021ecd1aee6f0625dc03bacc54.zip
x86, xsave: remove the redundant access_ok() in setup_rt_frame()
save_i387_xstate() is already doing the required access_ok(). Remove the redundant access_ok() before it. Signed-off-by: Suresh Siddha <suresh.b.siddha@intel.com> Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'arch')
-rw-r--r--arch/x86/kernel/signal_64.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/arch/x86/kernel/signal_64.c b/arch/x86/kernel/signal_64.c
index 2621b98f5bf6..6c581698ab56 100644
--- a/arch/x86/kernel/signal_64.c
+++ b/arch/x86/kernel/signal_64.c
@@ -208,9 +208,6 @@ static int setup_rt_frame(int sig, struct k_sigaction *ka, siginfo_t *info,
frame = (void __user *)round_down(
(unsigned long)fp - sizeof(struct rt_sigframe), 16) - 8;
- if (!access_ok(VERIFY_WRITE, fp, sizeof(struct _fpstate)))
- goto give_sigsegv;
-
if (save_i387_xstate(fp) < 0)
err |= -1;
} else