kernel/: 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 kernel/*.c Signed-off-by: Akinobu Mita <akinobu.mita@gmail.com> Cc: Ingo Molnar <mingo@elte.hu> Cc: Peter Zijlstra <peterz@infradead.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
parent
ad84bb5b98
commit
80b5184cc5
7 changed files with 17 additions and 13 deletions
|
@ -539,7 +539,7 @@ static int __cpuinit relay_hotcpu_callback(struct notifier_block *nb,
|
|||
"relay_hotcpu_callback: cpu %d buffer "
|
||||
"creation failed\n", hotcpu);
|
||||
mutex_unlock(&relay_channels_mutex);
|
||||
return NOTIFY_BAD;
|
||||
return notifier_from_errno(-ENOMEM);
|
||||
}
|
||||
}
|
||||
mutex_unlock(&relay_channels_mutex);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue