diff options
-rw-r--r-- | arch/x86/kernel/cpu/intel_cacheinfo.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/kernel/cpu/intel_cacheinfo.c b/arch/x86/kernel/cpu/intel_cacheinfo.c index 72401264912c..1ab46e05adf0 100644 --- a/arch/x86/kernel/cpu/intel_cacheinfo.c +++ b/arch/x86/kernel/cpu/intel_cacheinfo.c | |||
@@ -771,7 +771,7 @@ store_cache_disable(struct _cpuid4_info *this_leaf, const char *buf, | |||
771 | unsigned int ret, index, val; | 771 | unsigned int ret, index, val; |
772 | 772 | ||
773 | if (!this_leaf->can_disable) | 773 | if (!this_leaf->can_disable) |
774 | return 0; | 774 | return -EINVAL; |
775 | 775 | ||
776 | if (strlen(buf) > 15) | 776 | if (strlen(buf) > 15) |
777 | return -EINVAL; | 777 | return -EINVAL; |