|
@@ -3664,7 +3664,7 @@ tracing_trace_options_write(struct file *filp, const char __user *ubuf,
|
|
|
if (cnt >= sizeof(buf))
|
|
|
return -EINVAL;
|
|
|
|
|
|
- if (copy_from_user(&buf, ubuf, cnt))
|
|
|
+ if (copy_from_user(buf, ubuf, cnt))
|
|
|
return -EFAULT;
|
|
|
|
|
|
buf[cnt] = 0;
|
|
@@ -4537,7 +4537,7 @@ tracing_set_trace_write(struct file *filp, const char __user *ubuf,
|
|
|
if (cnt > MAX_TRACER_SIZE)
|
|
|
cnt = MAX_TRACER_SIZE;
|
|
|
|
|
|
- if (copy_from_user(&buf, ubuf, cnt))
|
|
|
+ if (copy_from_user(buf, ubuf, cnt))
|
|
|
return -EFAULT;
|
|
|
|
|
|
buf[cnt] = 0;
|
|
@@ -5327,7 +5327,7 @@ static ssize_t tracing_clock_write(struct file *filp, const char __user *ubuf,
|
|
|
if (cnt >= sizeof(buf))
|
|
|
return -EINVAL;
|
|
|
|
|
|
- if (copy_from_user(&buf, ubuf, cnt))
|
|
|
+ if (copy_from_user(buf, ubuf, cnt))
|
|
|
return -EFAULT;
|
|
|
|
|
|
buf[cnt] = 0;
|