]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
powerpc/pseries: Add failure related checks for h_get_mpp and h_get_ppp
authorShrikanth Hegde <sshegde@linux.ibm.com>
Fri, 12 Apr 2024 09:20:47 +0000 (14:50 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 16 Jun 2024 11:39:44 +0000 (13:39 +0200)
commit97e1f40f9f51d155478503af2ebd2c468583a0a5
tree57c9ec78f13303079f1761722fc220f9d1d9b0be
parentc94e77516fc3211a79e834bd281f3642db16c2b0
powerpc/pseries: Add failure related checks for h_get_mpp and h_get_ppp

[ Upstream commit 6d4341638516bf97b9a34947e0bd95035a8230a5 ]

Couple of Minor fixes:

- hcall return values are long. Fix that for h_get_mpp, h_get_ppp and
parse_ppp_data

- If hcall fails, values set should be at-least zero. It shouldn't be
uninitialized values. Fix that for h_get_mpp and h_get_ppp

Signed-off-by: Shrikanth Hegde <sshegde@linux.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://msgid.link/20240412092047.455483-3-sshegde@linux.ibm.com
Signed-off-by: Sasha Levin <sashal@kernel.org>
arch/powerpc/include/asm/hvcall.h
arch/powerpc/platforms/pseries/lpar.c
arch/powerpc/platforms/pseries/lparcfg.c