]> bbs.cooldavid.org Git - net-next-2.6.git/blobdiff - arch/x86/kernel/cpu/intel_cacheinfo.c
x86: cacheinfo: correct return value when cache_disable feature is not active
[net-next-2.6.git] / arch / x86 / kernel / cpu / intel_cacheinfo.c
index 72401264912c34ae5b84e5997159cbdf8649d5a7..1ab46e05adf0c8f5b487255fd47581828bc3101f 100644 (file)
@@ -771,7 +771,7 @@ store_cache_disable(struct _cpuid4_info *this_leaf, const char *buf,
        unsigned int ret, index, val;
 
        if (!this_leaf->can_disable)
-               return 0;
+               return -EINVAL;
 
        if (strlen(buf) > 15)
                return -EINVAL;