linux/arch/s390/pci
Sebastian Ott dba599091c s390/pci: fix use after free in dma_init
After a failure during registration of the dma_table (because of the
function being in error state) we free its memory but don't reset the
associated pointer to zero.

When we then receive a notification from firmware (about the function
being in error state) we'll try to walk and free the dma_table again.

Fix this by resetting the dma_table pointer. In addition to that make
sure that we free the iommu_bitmap when appropriate.

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>
2016-04-21 09:50: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: PCI function group 0 is valid for clp_query_pci_fn 2016-04-01 08:42:35 +02:00
pci_debug.c s390/pci: remove pdev pointer from arch data 2016-02-23 08:56:16 +01:00
pci_dma.c s390/pci: fix use after free in dma_init 2016-04-21 09:50:09 +02:00
pci_event.c s390/pci: remove pdev pointer from arch data 2016-02-23 08:56:16 +01:00
pci_insn.c s390/pci: reshuffle struct used to write debug data 2015-10-14 14:32:17 +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: use pci_rescan_remove_lock 2015-07-29 09:11:56 +02:00
pci.c virtio/vhost: new features, performance improvements, cleanups 2016-03-20 13:28:18 -07:00