ret = -EIO;
if (copied != sizeof(tmp))
break;
- ret = put_user(tmp, (u32*)data);
+ ret = put_user(tmp, (u32 __user *)data);
break;
}
case PPC_PTRACE_PEEKDATA_3264: {
u32 tmp;
int copied;
- u32* addrOthers;
+ u32 __user * addrOthers;
ret = -EIO;
/* Get the addr in the other process that we want to read */
- if (get_user(addrOthers, (u32**)addr) != 0)
+ if (get_user(addrOthers, (u32 __user * __user *)addr) != 0)
break;
copied = access_process_vm(child, (u64)addrOthers, &tmp,
sizeof(tmp), 0);
if (copied != sizeof(tmp))
break;
- ret = put_user(tmp, (u32*)data);
+ ret = put_user(tmp, (u32 __user *)data);
break;
}
*/
tmp = ((unsigned int *)child->thread.fpr)[index - PT_FPR0];
}
- ret = put_user((unsigned int)tmp, (u32*)data);
+ ret = put_user((unsigned int)tmp, (u32 __user *)data);
break;
}
tmp = get_reg(child, numReg);
}
reg32bits = ((u32*)&tmp)[part];
- ret = put_user(reg32bits, (u32*)data);
+ ret = put_user(reg32bits, (u32 __user *)data);
break;
}
case PPC_PTRACE_POKETEXT_3264:
case PPC_PTRACE_POKEDATA_3264: {
u32 tmp = data;
- u32* addrOthers;
+ u32 __user * addrOthers;
/* Get the addr in the other process that we want to write into */
ret = -EIO;
- if (get_user(addrOthers, (u32**)addr) != 0)
+ if (get_user(addrOthers, (u32 __user * __user *)addr) != 0)
break;
ret = 0;
if (access_process_vm(child, (u64)addrOthers, &tmp,
case PPC_PTRACE_GETREGS: { /* Get GPRs 0 - 31. */
int i;
unsigned long *reg = &((unsigned long *)child->thread.regs)[0];
- unsigned int *tmp = (unsigned int *)addr;
+ unsigned int __user *tmp = (unsigned int __user *)addr;
for (i = 0; i < 32; i++) {
ret = put_user(*reg, tmp);
case PPC_PTRACE_SETREGS: { /* Set GPRs 0 - 31. */
int i;
unsigned long *reg = &((unsigned long *)child->thread.regs)[0];
- unsigned int *tmp = (unsigned int *)addr;
+ unsigned int __user *tmp = (unsigned int __user *)addr;
for (i = 0; i < 32; i++) {
ret = get_user(*reg, tmp);
case PPC_PTRACE_GETFPREGS: { /* Get FPRs 0 - 31. */
int i;
unsigned long *reg = &((unsigned long *)child->thread.fpr)[0];
- unsigned int *tmp = (unsigned int *)addr;
+ unsigned int __user *tmp = (unsigned int __user *)addr;
if (child->thread.regs->msr & MSR_FP)
giveup_fpu(child);
case PPC_PTRACE_SETFPREGS: { /* Get FPRs 0 - 31. */
int i;
unsigned long *reg = &((unsigned long *)child->thread.fpr)[0];
- unsigned int *tmp = (unsigned int *)addr;
+ unsigned int __user *tmp = (unsigned int __user *)addr;
if (child->thread.regs->msr & MSR_FP)
giveup_fpu(child);