Skip to content
Commit e2be2371 authored by Rasmus Villemoes's avatar Rasmus Villemoes Committed by Michael Ellerman
Browse files

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: default avatarRasmus Villemoes <linux@rasmusvillemoes.dk>
Signed-off-by: default avatarMichael Ellerman <mpe@ellerman.id.au>
parent a9862c74
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment