diff options
-rw-r--r-- | drivers/dahdi/wcte12xp/base.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/dahdi/wcte12xp/base.c b/drivers/dahdi/wcte12xp/base.c index 0555d0d..643a50c 100644 --- a/drivers/dahdi/wcte12xp/base.c +++ b/drivers/dahdi/wcte12xp/base.c @@ -1320,7 +1320,7 @@ static int t1xxp_ioctl(struct dahdi_chan *chan, unsigned int cmd, unsigned long for (x = 0; x < sizeof(regs.regs) / sizeof(regs.regs[0]); x++) regs.regs[x] = t1_getreg(wc, x); - if (copy_to_user((struct t4_regs *) data, ®s, sizeof(regs))) + if (copy_to_user((void __user *) data, ®s, sizeof(regs))) return -EFAULT; break; default: |