mirror of
https://github.com/torvalds/linux.git
synced 2024-11-22 20:22:09 +00:00
s390/cpum_sf: Assign error value to err variable
When starting the CPU Measurement sampling facility using qsi() function, this function may return an error value. This error value is referenced in the else part of the if statement to dump its value in a debug statement. Right now this value is always zero because it has not been assigned a value. Signed-off-by: Thomas Richter <tmricht@linux.ibm.com> Signed-off-by: Vasily Gorbik <gor@linux.ibm.com>
This commit is contained in:
parent
c18388340c
commit
72fbcd057f
@ -1007,7 +1007,8 @@ static void cpumsf_pmu_disable(struct pmu *pmu)
|
||||
}
|
||||
|
||||
/* Save state of TEAR and DEAR register contents */
|
||||
if (!qsi(&si)) {
|
||||
err = qsi(&si);
|
||||
if (!err) {
|
||||
/* TEAR/DEAR values are valid only if the sampling facility is
|
||||
* enabled. Note that cpumsf_pmu_disable() might be called even
|
||||
* for a disabled sampling facility because cpumsf_pmu_enable()
|
||||
|
Loading…
Reference in New Issue
Block a user