aboutsummaryrefslogtreecommitdiffstats
path: root/arch/xtensa/kernel
diff options
context:
space:
mode:
Diffstat (limited to 'arch/xtensa/kernel')
-rw-r--r--arch/xtensa/kernel/signal.c4
-rw-r--r--arch/xtensa/kernel/stacktrace.c2
2 files changed, 3 insertions, 3 deletions
diff --git a/arch/xtensa/kernel/signal.c b/arch/xtensa/kernel/signal.c
index 74e1682876ac..dc22a238ed9c 100644
--- a/arch/xtensa/kernel/signal.c
+++ b/arch/xtensa/kernel/signal.c
@@ -251,7 +251,7 @@ asmlinkage long xtensa_rt_sigreturn(long a0, long a1, long a2, long a3,
251 251
252 frame = (struct rt_sigframe __user *) regs->areg[1]; 252 frame = (struct rt_sigframe __user *) regs->areg[1];
253 253
254 if (!access_ok(VERIFY_READ, frame, sizeof(*frame))) 254 if (!access_ok(frame, sizeof(*frame)))
255 goto badframe; 255 goto badframe;
256 256
257 if (__copy_from_user(&set, &frame->uc.uc_sigmask, sizeof(set))) 257 if (__copy_from_user(&set, &frame->uc.uc_sigmask, sizeof(set)))
@@ -348,7 +348,7 @@ static int setup_frame(struct ksignal *ksig, sigset_t *set,
348 if (regs->depc > 64) 348 if (regs->depc > 64)
349 panic ("Double exception sys_sigreturn\n"); 349 panic ("Double exception sys_sigreturn\n");
350 350
351 if (!access_ok(VERIFY_WRITE, frame, sizeof(*frame))) { 351 if (!access_ok(frame, sizeof(*frame))) {
352 return -EFAULT; 352 return -EFAULT;
353 } 353 }
354 354
diff --git a/arch/xtensa/kernel/stacktrace.c b/arch/xtensa/kernel/stacktrace.c
index 0df4080fa20f..174c11f13bba 100644
--- a/arch/xtensa/kernel/stacktrace.c
+++ b/arch/xtensa/kernel/stacktrace.c
@@ -91,7 +91,7 @@ void xtensa_backtrace_user(struct pt_regs *regs, unsigned int depth,
91 pc = MAKE_PC_FROM_RA(a0, pc); 91 pc = MAKE_PC_FROM_RA(a0, pc);
92 92
93 /* Check if the region is OK to access. */ 93 /* Check if the region is OK to access. */
94 if (!access_ok(VERIFY_READ, &SPILL_SLOT(a1, 0), 8)) 94 if (!access_ok(&SPILL_SLOT(a1, 0), 8))
95 return; 95 return;
96 /* Copy a1, a0 from user space stack frame. */ 96 /* Copy a1, a0 from user space stack frame. */
97 if (__get_user(a0, &SPILL_SLOT(a1, 0)) || 97 if (__get_user(a0, &SPILL_SLOT(a1, 0)) ||