summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDave Jones <davej@redhat.com>2011-05-29 01:10:36 -0400
committerDave Jones <davej@redhat.com>2011-05-29 01:10:36 -0400
commit6e45cd54451f7c07c609e707c950d1bb6d3e02c1 (patch)
tree20ebe639721dbed30858dc15822ff1b28fd77fff
parentd53455d4c2ee6641373e8b754e258c939c3cb5e6 (diff)
Only parse EBLCR if the MSR read succeeded
-rw-r--r--Intel/info.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Intel/info.c b/Intel/info.c
index f75eb74..8ace25d 100644
--- a/Intel/info.c
+++ b/Intel/info.c
@@ -131,8 +131,8 @@ void display_extended_Intel_info(struct cpudata *cpu)
if (show_eblcr) {
if (cpu->family == 6 && cpu->model >= 3) {
unsigned long long eblcr;
- read_msr(cpu->number, 0x2A, &eblcr);
- interpret_eblcr(eblcr);
+ if (read_msr(cpu->number, 0x2A, &eblcr) == 1)
+ interpret_eblcr(eblcr);
}
}