aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/exported-sql-viewer.py
diff options
context:
space:
mode:
authorOliver O'Halloran <[email protected]>2020-10-07 15:09:03 +1100
committerMichael Ellerman <[email protected]>2020-10-07 22:34:47 +1100
commit8175bd580e629dcf9cc507794da774a6b8d3a9bd (patch)
treefea43b1ad0057a92701e164f8b14ada0f00a4ef9 /tools/perf/scripts/python/exported-sql-viewer.py
parent269e583357df32d77368903214f10f43fa5d7a5f (diff)
powerpc/pseries/eeh: Fix use of uninitialised variable
If the RTAS call to query the PE address for a device fails we jump the err: label where an error message is printed along with the return code. However, the printed return code is from the "ret" variable which isn't set at that point since we assigned the result to "addr" instead. Fix this by consistently using the "ret" variable for the result of the RTAS call helpers an dropping the "addr" local variable" Fixes: 98ba956f6a38 ("powerpc/pseries/eeh: Rework device EEH PE determination") Signed-off-by: Oliver O'Halloran <[email protected]> Signed-off-by: Michael Ellerman <[email protected]> Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions