Skip to content

Commit 1dee31f

Browse files
mitatorvalds
authored andcommitted
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>
1 parent 92e99a9 commit 1dee31f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎drivers/infiniband/hw/ehca/ehca_irq.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -847,7 +847,7 @@ static int __cpuinit comp_pool_callback(struct notifier_block *nfb,
847847
ehca_gen_dbg("CPU: %x (CPU_PREPARE)", cpu);
848848
if (!create_comp_task(pool, cpu)) {
849849
ehca_gen_err("Can't create comp_task for cpu: %x", cpu);
850-
return NOTIFY_BAD;
850+
return notifier_from_errno(-ENOMEM);
851851
}
852852
break;
853853
case CPU_UP_CANCELED:

0 commit comments

Comments
 (0)