]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/pseries: skip reserved LMBs in dlpar_memory_add_by_count()
authorDaniel Henrique Barboza <danielhb413@gmail.com>
Tue, 22 Jun 2021 13:39:21 +0000 (10:39 -0300)
committerMichael Ellerman <mpe@ellerman.id.au>
Thu, 24 Jun 2021 14:07:09 +0000 (00:07 +1000)
commita527df3c5c488fa32fc753b5387897072a26ffdb
treea1c5366d4828b1952eab22f5bdf2ec647672ea64
parent1876050c9a1b038299a7d2530f03396e3a81ab29
powerpc/pseries: skip reserved LMBs in dlpar_memory_add_by_count()

The function is counting reserved LMBs as available to be added, but
they aren't. This will cause the function to miscalculate the available
LMBs and can trigger errors later on when executing dlpar_add_lmb().

Signed-off-by: Daniel Henrique Barboza <danielhb413@gmail.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20210622133923.295373-2-danielhb413@gmail.com
arch/powerpc/platforms/pseries/hotplug-memory.c