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>
This commit is contained in:
Akinobu Mita 2010-05-26 14:43:35 -07:00 коммит произвёл Linus Torvalds
Родитель d882ba699d
Коммит 55af6bb509
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -4645,7 +4645,7 @@ static int raid456_cpu_notify(struct notifier_block *nfb, unsigned long action,
kfree(percpu->scribble); kfree(percpu->scribble);
pr_err("%s: failed memory allocation for cpu%ld\n", pr_err("%s: failed memory allocation for cpu%ld\n",
__func__, cpu); __func__, cpu);
return NOTIFY_BAD; return notifier_from_errno(-ENOMEM);
} }
break; break;
case CPU_DEAD: case CPU_DEAD: