diff options
Diffstat (limited to 'drivers/staging/gdm72xx')
-rw-r--r-- | drivers/staging/gdm72xx/gdm_wimax.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/staging/gdm72xx/gdm_wimax.c b/drivers/staging/gdm72xx/gdm_wimax.c index f71d2d239237..df93a7328265 100644 --- a/drivers/staging/gdm72xx/gdm_wimax.c +++ b/drivers/staging/gdm72xx/gdm_wimax.c @@ -539,7 +539,7 @@ static int gdm_wimax_ioctl_get_data(struct data_s *dst, struct data_s *src) if (src->size) { if (!dst->buf) return -EINVAL; - if (copy_to_user(dst->buf, src->buf, size)) + if (copy_to_user((void __user *)dst->buf, src->buf, size)) return -EFAULT; } return 0; @@ -562,7 +562,7 @@ static int gdm_wimax_ioctl_set_data(struct data_s *dst, struct data_s *src) return -ENOMEM; } - if (copy_from_user(dst->buf, src->buf, src->size)) { + if (copy_from_user(dst->buf, (void __user *)src->buf, src->size)) { kdelete(&dst->buf); return -EFAULT; } |