diff --git a/mm/slab.c b/mm/slab.c index 8270ba3d19860876b1ac349625ab7d34216b426d..6437d89a8401fe1ab46ec7c365cbc63ab6567e8e 100644 --- a/mm/slab.c +++ b/mm/slab.c @@ -1321,7 +1321,7 @@ static int __cpuinit cpuup_callback(struct notifier_block *nfb, mutex_unlock(&cache_chain_mutex); break; } - return err ? NOTIFY_BAD : NOTIFY_OK; + return notifier_from_errno(err); } static struct notifier_block __cpuinitdata cpucache_notifier = {