diff options
author | Shaun Ruffell <sruffell@digium.com> | 2010-07-28 15:32:07 +0000 |
---|---|---|
committer | Shaun Ruffell <sruffell@digium.com> | 2010-07-28 15:32:07 +0000 |
commit | e28950a7f77cae5a8f0d7c214d0f1c41a61e11eb (patch) | |
tree | d50bef7bc346bbd5d91e17d54b6bc9f6289c7051 /drivers/dahdi/wcte12xp | |
parent | 3683b480358f3ae7ff738dd301e75dfdd6b2c846 (diff) |
wcte12xp: Add __user annotation in copy_to_user call.
Quiets sparse.
git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@9043 a0bf4364-ded3-4de4-8d8a-66a801d63aff
Diffstat (limited to 'drivers/dahdi/wcte12xp')
-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: |