소스 검색

Merge "dsp: avtimer: add __user attribute to identify userspace address"

Linux Build Service Account 7 년 전
부모
커밋
67c380df81
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      dsp/avtimer.c

+ 1 - 1
dsp/avtimer.c

@@ -345,7 +345,7 @@ static long avtimer_ioctl(struct file *file, unsigned int ioctl_num,
 
 		pr_debug_ratelimited("%s: AV Timer tick: time %llx\n",
 		__func__, avtimer_tick);
-		if (copy_to_user((void *) ioctl_param, &avtimer_tick,
+		if (copy_to_user((void __user *)ioctl_param, &avtimer_tick,
 		    sizeof(avtimer_tick))) {
 			pr_err("%s: copy_to_user failed\n", __func__);
 			return -EFAULT;