powerpc/pseries/lparcfg: Fix display of Maximum Memory
authorMichael Bringmann <mwb@linux.ibm.com>
Wed, 15 Jan 2020 14:53:59 +0000 (08:53 -0600)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 24 Feb 2020 07:36:57 +0000 (08:36 +0100)
commit93df1b23b1577e18808aeff8b07976adde53014d
tree0b39d64291592135405e0148f1c8ed580000e155
parent411327180703c05ff0763c0688f582f1985e9a25
powerpc/pseries/lparcfg: Fix display of Maximum Memory

[ Upstream commit f1dbc1c5c70d0d4c60b5d467ba941fba167c12f6 ]

Correct overflow problem in calculation and display of Maximum Memory
value to syscfg.

Signed-off-by: Michael Bringmann <mwb@linux.ibm.com>
[mpe: Only n_lmbs needs casting to unsigned long]
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/5577aef8-1d5a-ca95-ff0a-9c7b5977e5bf@linux.ibm.com
Signed-off-by: Sasha Levin <sashal@kernel.org>
arch/powerpc/platforms/pseries/lparcfg.c