aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/trace/trace.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/trace/trace.c')
-rw-r--r--kernel/trace/trace.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/kernel/trace/trace.c b/kernel/trace/trace.c
index 8ebe0070c47a..6adf660fc816 100644
--- a/kernel/trace/trace.c
+++ b/kernel/trace/trace.c
@@ -2646,7 +2646,7 @@ tracing_cpumask_read(struct file *filp, char __user *ubuf,
2646 2646
2647 mutex_lock(&tracing_cpumask_update_lock); 2647 mutex_lock(&tracing_cpumask_update_lock);
2648 2648
2649 len = cpumask_scnprintf(mask_str, count, tracing_cpumask); 2649 len = cpumask_scnprintf(mask_str, count, &tracing_cpumask);
2650 if (count - len < 2) { 2650 if (count - len < 2) {
2651 count = -EINVAL; 2651 count = -EINVAL;
2652 goto out_err; 2652 goto out_err;
@@ -2667,7 +2667,7 @@ tracing_cpumask_write(struct file *filp, const char __user *ubuf,
2667 int err, cpu; 2667 int err, cpu;
2668 2668
2669 mutex_lock(&tracing_cpumask_update_lock); 2669 mutex_lock(&tracing_cpumask_update_lock);
2670 err = cpumask_parse_user(ubuf, count, tracing_cpumask_new); 2670 err = cpumask_parse_user(ubuf, count, &tracing_cpumask_new);
2671 if (err) 2671 if (err)
2672 goto err_unlock; 2672 goto err_unlock;
2673 2673