]> git.baikalelectronics.ru Git - kernel.git/commit
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)
committerMichael Ellerman <mpe@ellerman.id.au>
Sat, 25 Jan 2020 13:11:37 +0000 (00:11 +1100)
commit27052a87fe1f27a7fffb3dc36eb548a5bc9af54b
tree7d4949332ee66f24ca35f761c30e0809471bb92e
parent2a9a713ed9ea0499e43270c7009487df76e6656c
powerpc/pseries/lparcfg: Fix display of Maximum Memory

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
arch/powerpc/platforms/pseries/lparcfg.c