From: Akinobu Mita Date: Wed, 26 May 2010 21:43:35 +0000 (-0700) Subject: md: convert cpu notifier to return encapsulate errno value X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=55af6bb509d3ef2696faddd4a734bf024794b337;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git 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 Cc: Neil Brown Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/drivers/md/raid5.c b/drivers/md/raid5.c index 9ea17d6c799b..d2c0f94fa37d 100644 --- a/drivers/md/raid5.c +++ b/drivers/md/raid5.c @@ -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: