diff options
| -rw-r--r-- | arch/x86/kernel/cpu/intel_rdt_pseudo_lock.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/kernel/cpu/intel_rdt_pseudo_lock.c b/arch/x86/kernel/cpu/intel_rdt_pseudo_lock.c index f80c58f8adc3..40f3903ae5d9 100644 --- a/arch/x86/kernel/cpu/intel_rdt_pseudo_lock.c +++ b/arch/x86/kernel/cpu/intel_rdt_pseudo_lock.c | |||
| @@ -1171,7 +1171,7 @@ static ssize_t pseudo_lock_measure_trigger(struct file *file, | |||
| 1171 | buf[buf_size] = '\0'; | 1171 | buf[buf_size] = '\0'; |
| 1172 | ret = kstrtoint(buf, 10, &sel); | 1172 | ret = kstrtoint(buf, 10, &sel); |
| 1173 | if (ret == 0) { | 1173 | if (ret == 0) { |
| 1174 | if (sel != 1 && sel != 2) | 1174 | if (sel != 1) |
| 1175 | return -EINVAL; | 1175 | return -EINVAL; |
| 1176 | ret = debugfs_file_get(file->f_path.dentry); | 1176 | ret = debugfs_file_get(file->f_path.dentry); |
| 1177 | if (ret) | 1177 | if (ret) |
