linux/arch/s390/pci
Sebastian Ott 7257083491 s390/pci: improve unreg_ioat error handling
DMA tables are freed in zpci_dma_exit_device regardless of the return
code of zpci_unregister_ioat. This could lead to a use after free. On
the other hand during function hot-unplug, zpci_unregister_ioat will
always fail since the function is already gone.

So let zpci_unregister_ioat report success when the function is gone
but don't cleanup the dma table when a function could still have it
in access.

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>
2017-06-28 07:32:09 +02:00
..
Makefile s390/kernel: add system calls for PCI memory access 2014-11-19 09:46:43 +01:00
pci_clp.c s390/pci: query fmb length 2016-12-14 16:33:41 +01:00
pci_debug.c s390/atomic: refactor atomic primitives 2016-11-11 16:37:33 +01:00
pci_dma.c s390/pci: improve unreg_ioat error handling 2017-06-28 07:32:09 +02:00
pci_event.c s390/pci: Delete an unnecessary check before the function call "pci_dev_put" 2016-07-18 10:17:24 +02:00
pci_insn.c s390/pci: improve error handling during interrupt deregistration 2017-06-28 07:32:08 +02:00
pci_mmio.c s390/pci: fix possible information leak in mmio syscall 2015-02-26 09:24:48 +01:00
pci_sysfs.c s390/pci: add report_error attribute 2016-04-15 18:16:39 +02:00
pci.c s390/pci: improve unreg_ioat error handling 2017-06-28 07:32:09 +02:00