Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
SUSE:SLE-12-SP4:Update
mcelog.635
0001-Return-by-default-if-no-CPU-matches-in-set...
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 0001-Return-by-default-if-no-CPU-matches-in-set_imc_log.patch of Package mcelog.635
From 4fdb91f038cb8ff7ebcf3c156e66861ddcc540e2 Mon Sep 17 00:00:00 2001 From: Thomas Renninger <trenn@suse.de> Date: Mon, 22 Sep 2014 12:26:00 +0200 Subject: [PATCH] Return by default if no CPU matches in set_imc_log Do not issue uninitialized msr values if set_imc_log is called on unsupported CPUs. This is code clean up (makes it more robust). References: bsc#920197 Signed-off-by: Thomas Renninger <trenn@suse.de> Signed-off-by: Andi Kleen <ak@linux.intel.com> --- msr.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/msr.c b/msr.c index 2eef9d2..b0c219b 100644 --- a/msr.c +++ b/msr.c @@ -54,6 +54,8 @@ void set_imc_log(int cputype) msr = 0x17f; /* MSR_ERROR_CONTROL */ bit = 0x2; /* MemError Log Enable */ break; + default: + return; } for (cpu = 0; cpu < ncpus; cpu++) -- 1.8.5.2
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor