]> git.karo-electronics.de Git - karo-tx-linux.git/commit
s390/pci: improve error handling during fmb (de)registration
authorSebastian Ott <sebott@linux.vnet.ibm.com>
Sat, 10 Jun 2017 12:12:13 +0000 (14:12 +0200)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Wed, 28 Jun 2017 05:32:10 +0000 (07:32 +0200)
commit4e5bd7803bd1e822513d1007bad1527a2ec589b6
treebc9e07a9c933b3935e0f7849c6c47a2398c75414
parent725708349172f00b86e2bac5c03de360b79aaf65
s390/pci: improve error handling during fmb (de)registration

Cleanup in zpci_fmb_enable_device when fmb registration fails. Also
don't free the fmb when deregistration fails in zpci_fmb_disable_device
but handle error situations when a function was hot-unplugged.

Also remove the mod_pci helper since it is no longer used.

Signed-off-by: Sebastian Ott <sebott@linux.vnet.ibm.com>
Reviewed-by: Gerald Schaefer <gerald.schaefer@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
arch/s390/pci/pci.c