Skip to content

Commit 55af6bb

Browse files
mitatorvalds
authored andcommitted
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: Akinobu Mita <akinobu.mita@gmail.com> Cc: Neil Brown <neilb@suse.de> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
1 parent d882ba6 commit 55af6bb

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎drivers/md/raid5.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4645,7 +4645,7 @@ static int raid456_cpu_notify(struct notifier_block *nfb, unsigned long action,
46454645
kfree(percpu->scribble);
46464646
pr_err("%s: failed memory allocation for cpu%ld\n",
46474647
__func__, cpu);
4648-
return NOTIFY_BAD;
4648+
return notifier_from_errno(-ENOMEM);
46494649
}
46504650
break;
46514651
case CPU_DEAD:

0 commit comments

Comments
 (0)