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
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
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.
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.
4 matches
Mail list logo