diff options
Diffstat (limited to 'kernel/trace')
-rw-r--r-- | kernel/trace/trace.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/kernel/trace/trace.c b/kernel/trace/trace.c index f4bb3800318b..c8760ec0e463 100644 --- a/kernel/trace/trace.c +++ b/kernel/trace/trace.c | |||
@@ -2675,7 +2675,7 @@ tracing_cpumask_read(struct file *filp, char __user *ubuf, | |||
2675 | 2675 | ||
2676 | mutex_lock(&tracing_cpumask_update_lock); | 2676 | mutex_lock(&tracing_cpumask_update_lock); |
2677 | 2677 | ||
2678 | len = cpumask_scnprintf(mask_str, count, tracing_cpumask); | 2678 | len = cpumask_scnprintf(mask_str, count, &tracing_cpumask); |
2679 | if (count - len < 2) { | 2679 | if (count - len < 2) { |
2680 | count = -EINVAL; | 2680 | count = -EINVAL; |
2681 | goto out_err; | 2681 | goto out_err; |
@@ -2696,7 +2696,7 @@ tracing_cpumask_write(struct file *filp, const char __user *ubuf, | |||
2696 | int err, cpu; | 2696 | int err, cpu; |
2697 | 2697 | ||
2698 | mutex_lock(&tracing_cpumask_update_lock); | 2698 | mutex_lock(&tracing_cpumask_update_lock); |
2699 | err = cpumask_parse_user(ubuf, count, tracing_cpumask_new); | 2699 | err = cpumask_parse_user(ubuf, count, &tracing_cpumask_new); |
2700 | if (err) | 2700 | if (err) |
2701 | goto err_unlock; | 2701 | goto err_unlock; |
2702 | 2702 | ||