diff options
author | Akinobu Mita <akinobu.mita@gmail.com> | 2010-05-26 17:43:34 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2010-05-27 12:12:48 -0400 |
commit | 1dee31f74fed47565ed62023fc65fcb7d6c5d648 (patch) | |
tree | dbc654bb171bfaef9de8e175b9b3ae54b47a2303 /drivers/infiniband | |
parent | 92e99a98bb44ccce6c902ea077b49cafcfb80025 (diff) |
ehca: 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 ehca.
Signed-off-by: Akinobu Mita <akinobu.mita@gmail.com>
Cc: Hoang-Nam Nguyen <hnguyen@de.ibm.com>
Cc: Christoph Raisch <raisch@de.ibm.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/infiniband')
-rw-r--r-- | drivers/infiniband/hw/ehca/ehca_irq.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/infiniband/hw/ehca/ehca_irq.c b/drivers/infiniband/hw/ehca/ehca_irq.c index 07cae552cafb..e571e60ecb88 100644 --- a/drivers/infiniband/hw/ehca/ehca_irq.c +++ b/drivers/infiniband/hw/ehca/ehca_irq.c | |||
@@ -847,7 +847,7 @@ static int __cpuinit comp_pool_callback(struct notifier_block *nfb, | |||
847 | ehca_gen_dbg("CPU: %x (CPU_PREPARE)", cpu); | 847 | ehca_gen_dbg("CPU: %x (CPU_PREPARE)", cpu); |
848 | if (!create_comp_task(pool, cpu)) { | 848 | if (!create_comp_task(pool, cpu)) { |
849 | ehca_gen_err("Can't create comp_task for cpu: %x", cpu); | 849 | ehca_gen_err("Can't create comp_task for cpu: %x", cpu); |
850 | return NOTIFY_BAD; | 850 | return notifier_from_errno(-ENOMEM); |
851 | } | 851 | } |
852 | break; | 852 | break; |
853 | case CPU_UP_CANCELED: | 853 | case CPU_UP_CANCELED: |