remarkable-linux/arch/s390
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
..
appldata sched/headers: Move task statistics APIs from <linux/sched.h> to <linux/sched/stat.h> 2017-03-03 01:43:43 +01:00
boot s390/decompressor: fix initrd corruption caused by bss clear 2017-03-22 08:21:20 +01:00
configs s390: update defconfig 2017-06-08 15:53:48 +02:00
crypto s390/crypto: fix aes/paes Kconfig dependeny 2017-06-12 16:25:58 +02:00
hypfs s390: hypfs: make inode explicitly non-modular 2016-10-31 17:55:40 +01:00
include s390/pci: improve error handling during interrupt deregistration 2017-06-28 07:32:08 +02:00
kernel s390/fpu: export save_fpu_regs for all configs 2017-06-13 13:03:43 +02:00
kvm s390: rename struct psw_bits members 2017-06-12 16:26:02 +02:00
lib s390/uaccess: use sane length for __strncpy_from_user() 2017-05-09 10:43:24 +02:00
mm s390: rename struct psw_bits members 2017-06-12 16:26:02 +02:00
net s390: use set_memory.h header 2017-05-08 17:15:13 -07:00
numa s390/numa: pin all possible cpus to nodes early 2016-12-07 07:23:33 +01:00
oprofile
pci s390/pci: improve unreg_ioat error handling 2017-06-28 07:32:09 +02:00
tools s390/facilities: remove stfle requirement 2017-06-12 16:25:59 +02:00
defconfig s390: update defconfig 2017-06-08 15:53:48 +02:00
Kbuild s390/crypto: Provide s390 specific arch random functionality. 2017-04-26 13:41:35 +02:00
Kconfig s390/kvm: avoid global config of vm.alloc_pgste=1 2017-06-13 13:03:41 +02:00
Kconfig.debug Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/s390/linux 2017-02-22 10:20:04 -08:00
Makefile