mirror of
https://github.com/adulau/aha.git
synced 2025-01-04 23:23:18 +00:00
x86: signal: add __user annotation
Impact: cleanup Add missing __user annotation to the parameter of get_sigframe(). Also change cast type to void __user * of *fpstate. Signed-off-by: Hiroshi Shimamoto <h-shimamoto@ct.jp.nec.com> Signed-off-by: Ingo Molnar <mingo@elte.hu>
This commit is contained in:
parent
ecc25fbd6b
commit
144b0712dd
1 changed files with 2 additions and 2 deletions
|
@ -215,7 +215,7 @@ static const struct {
|
|||
*/
|
||||
static inline void __user *
|
||||
get_sigframe(struct k_sigaction *ka, struct pt_regs *regs, size_t frame_size,
|
||||
void **fpstate)
|
||||
void __user **fpstate)
|
||||
{
|
||||
unsigned long sp;
|
||||
|
||||
|
@ -243,7 +243,7 @@ get_sigframe(struct k_sigaction *ka, struct pt_regs *regs, size_t frame_size,
|
|||
|
||||
if (used_math()) {
|
||||
sp = sp - sig_xstate_size;
|
||||
*fpstate = (struct _fpstate *) sp;
|
||||
*fpstate = (void __user *) sp;
|
||||
if (save_i387_xstate(*fpstate) < 0)
|
||||
return (void __user *)-1L;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue