[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <3rkQkt2qMHz9t0T@ozlabs.org>
Date: Wed, 6 Jul 2016 00:10:14 +1000 (AEST)
From: Michael Ellerman <mpe@...erman.id.au>
To: Rasmus Villemoes <linux@...musvillemoes.dk>,
Benjamin Herrenschmidt <benh@...nel.crashing.org>,
Paul Mackerras <paulus@...ba.org>
Cc: linuxppc-dev@...ts.ozlabs.org,
Rasmus Villemoes <linux@...musvillemoes.dk>,
linux-kernel@...r.kernel.org
Subject: Re: powerpc/pseries: fix error return value in cmm_mem_going_offline
On Tue, 2016-08-03 at 21:26:17 UTC, Rasmus Villemoes wrote:
> 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@...musvillemoes.dk>
Applied to powerpc next, thanks.
https://git.kernel.org/powerpc/c/e2be23712a9c8e3710c9e2684a
cheers
Powered by blists - more mailing lists