Michael Bringmann 1cfe1e9da6 powerpc/hotplug-mem: Fix missing endian conversion of aa_index
commit dc421b200f91930c9c6a9586810ff8c232cf10fc upstream.

When adding or removing memory, the aa_index (affinity value) for the
memblock must also be converted to match the endianness of the rest
of the 'ibm,dynamic-memory' property.  Otherwise, subsequent retrieval
of the attribute will likely lead to non-existent nodes, followed by
using the default node in the code inappropriately.

Fixes: 5f97b2a0d176 ("powerpc/pseries: Implement memory hotplug add in the kernel")
Signed-off-by: Michael Bringmann <mwb@linux.vnet.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2017-06-14 13:16:25 +02:00
..
2017-05-25 14:30:17 +02:00
2016-09-30 10:18:37 +02:00
2016-09-24 10:07:44 +02:00
2016-09-24 10:07:43 +02:00
2016-12-15 08:49:23 -08:00
2016-09-24 10:07:44 +02:00
2017-06-14 13:16:20 +02:00
2016-09-07 08:32:38 +02:00
2015-11-11 09:16:10 -08:00