]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
powerpc/pseries: Improve error code on reconfiguration notifier failure
authorAkinobu Mita <akinobu.mita@gmail.com>
Tue, 21 Jun 2011 03:35:56 +0000 (03:35 +0000)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Wed, 29 Jun 2011 07:48:24 +0000 (17:48 +1000)
commitde2780a3d82372a6bfc7f474905e346c0f26dfa4
treef9a50e6dadeeacfad6d6c8f266d98662679b5dd0
parent3aef19f0a10d1c274a15191766b627fe550d456e
powerpc/pseries: Improve error code on reconfiguration notifier failure

Reconfiguration notifier call for device node may fail by several reasons,
but it always assumes kmalloc failures.

This enables reconfiguration notifier call chain to get the actual error
code rather than -ENOMEM by converting all reconfiguration notifier calls
to return encapsulate error code with notifier_from_errno().

Signed-off-by: Akinobu Mita <akinobu.mita@gmail.com>
Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Cc: Paul Mackerras <paulus@samba.org>
Cc: linuxppc-dev@lists.ozlabs.org
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
arch/powerpc/kernel/prom.c
arch/powerpc/platforms/pseries/hotplug-cpu.c
arch/powerpc/platforms/pseries/hotplug-memory.c
arch/powerpc/platforms/pseries/reconfig.c