]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/papr_scm: Fix resource end address
authorOliver O'Halloran <oohall@gmail.com>
Thu, 6 Dec 2018 15:17:09 +0000 (02:17 +1100)
committerMichael Ellerman <mpe@ellerman.id.au>
Fri, 7 Dec 2018 12:32:02 +0000 (23:32 +1100)
commit74172e8253145974c8be55a80d96f62789ae3fe0
treed121db75520ea00d9377453819c6846f3bc16760
parentc07cf138a2f815ee3c4171fcc39afdd91d0838ee
powerpc/papr_scm: Fix resource end address

Fix an off-by-one error in the memory resource range. This resource is
used to determine the address range of the memory to be hot-plugged as
ZONE_DEVICE memory. The current end address results in the kernel
attempting to map an additional memblock and the hypervisor may reject
the mapping resulting in the entire hot-plug failing.

Fixes: 3f927cd9ef76 ("powerpc/pseries: Add driver for PAPR SCM regions")
Signed-off-by: Oliver O'Halloran <oohall@gmail.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/platforms/pseries/papr_scm.c