Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 55af6bb5 authored by Akinobu Mita's avatar Akinobu Mita Committed by Linus Torvalds
Browse files

md: convert cpu notifier to return encapsulate errno value



By the previous modification, the cpu notifier can return encapsulate
errno value.  This converts the cpu notifiers for raid5.

Signed-off-by: default avatarAkinobu Mita <akinobu.mita@gmail.com>
Cc: Neil Brown <neilb@suse.de>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent d882ba69
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -4645,7 +4645,7 @@ static int raid456_cpu_notify(struct notifier_block *nfb, unsigned long action,
			kfree(percpu->scribble);
			pr_err("%s: failed memory allocation for cpu%ld\n",
			       __func__, cpu);
			return NOTIFY_BAD;
			return notifier_from_errno(-ENOMEM);
		}
		break;
	case CPU_DEAD: