]> Pileus Git - ~andy/linux/commit
x86: cacheinfo: correct return value when cache_disable feature is not active
authorAndreas Herrmann <andreas.herrmann3@amd.com>
Thu, 9 Apr 2009 13:07:29 +0000 (15:07 +0200)
committerIngo Molnar <mingo@elte.hu>
Fri, 10 Apr 2009 12:21:42 +0000 (14:21 +0200)
commit845d8c761ec763871936c62b837c4a9ea6d0fbdb
tree5ce2589da0c32327ce35fdb4126b64d1da23b99c
parentbda869c614c937c318547c3ee1d65a316b693c21
x86: cacheinfo: correct return value when cache_disable feature is not active

Impact: bug fix

If user writes to "cache_disable" attribute on a CPU that does not support
this feature, the process hangs due to an invalid return value in
store_cache_disable().

Signed-off-by: Andreas Herrmann <andreas.herrmann3@amd.com>
Cc: Andrew Morton <akpm@linux-foundation.org>
Cc: Mark Langsdorf <mark.langsdorf@amd.com>
LKML-Reference: <20090409130729.GH31527@alberich.amd.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
arch/x86/kernel/cpu/intel_cacheinfo.c