powerpc/pseries: Fix error return value in cmm_mem_going_offline()
authorRasmus Villemoes <linux@rasmusvillemoes.dk>
Tue, 8 Mar 2016 21:26:17 +0000 (22:26 +0100)
committerMichael Ellerman <mpe@ellerman.id.au>
Tue, 5 Jul 2016 13:58:52 +0000 (23:58 +1000)
commite2be23712a9c8e3710c9e2684a3204bd20c685d6
tree56db0a9c7f91870ffa5498c132c755072ed32b6e
parenta9862c7440f191439a51f77233f89f7e40efe02e
powerpc/pseries: Fix error return value in cmm_mem_going_offline()

cmm_mem_going_offline() is (only) called from cmm_memory_cb(), which
sends the return value through notifier_from_errno(). The latter
expects 0 or -errno (notifier_to_errno(notifier_from_errno(x)) is 0
for any x >= 0, so passing a positive value cannot make sense). Hence
negate ENOMEM.

Signed-off-by: Rasmus Villemoes <linux@rasmusvillemoes.dk>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/platforms/pseries/cmm.c