mirror of
https://github.com/torvalds/linux.git
synced 2026-06-06 21:45:45 +02:00
KVM: PPC: Book3S HV: Check return value of kvmppc_radix_init
[ Upstream commit69ab6ac380] The return of the function is being shadowed by the call to kvmppc_uvmem_init. Fixes:ca9f494267("KVM: PPC: Book3S HV: Support for running secure guests") Signed-off-by: Fabiano Rosas <farosas@linux.ibm.com> Reviewed-by: Nicholas Piggin <npiggin@gmail.com> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au> Link: https://lore.kernel.org/r/20220125155735.1018683-2-farosas@linux.ibm.com Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
parent
8b64c158a0
commit
c18b538617
|
|
@ -5752,8 +5752,11 @@ static int kvmppc_book3s_init_hv(void)
|
||||||
if (r)
|
if (r)
|
||||||
return r;
|
return r;
|
||||||
|
|
||||||
if (kvmppc_radix_possible())
|
if (kvmppc_radix_possible()) {
|
||||||
r = kvmppc_radix_init();
|
r = kvmppc_radix_init();
|
||||||
|
if (r)
|
||||||
|
return r;
|
||||||
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* POWER9 chips before version 2.02 can't have some threads in
|
* POWER9 chips before version 2.02 can't have some threads in
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user