summaryrefslogtreecommitdiffstats
path: root/arch/powerpc/perf
diff options
context:
space:
mode:
authorOliver O'Halloran <oohall@gmail.com>2020-10-07 06:09:03 +0200
committerMichael Ellerman <mpe@ellerman.id.au>2020-10-07 13:34:47 +0200
commit8175bd580e629dcf9cc507794da774a6b8d3a9bd (patch)
treefea43b1ad0057a92701e164f8b14ada0f00a4ef9 /arch/powerpc/perf
parentpowerpc/eeh: Delete eeh_pe->config_addr (diff)
downloadlinux-8175bd580e629dcf9cc507794da774a6b8d3a9bd.tar.xz
linux-8175bd580e629dcf9cc507794da774a6b8d3a9bd.zip
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 <oohall@gmail.com> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au> Link: https://lore.kernel.org/r/20201007040903.819081-2-oohall@gmail.com
Diffstat (limited to 'arch/powerpc/perf')
0 files changed, 0 insertions, 0 deletions