linux/drivers/misc/cxl
Ian Munsie 456295e284 cxl: Fix leaking interrupts if attach process fails
In this particular error path we have already allocated the AFU
interrupts, but have not yet set the status to STARTED. The detach
context code will only attempt to release the interrupts if the context
is in state STARTED, so in this case the interrupts would remain
allocated.

This patch releases the AFU interrupts immediately if the attach call
fails to prevent them leaking.

Signed-off-by: Ian Munsie <imunsie@au1.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
2014-12-29 15:45:43 +11:00
..
base.c
context.c cxl: Unmap MMIO regions when detaching a context 2014-12-12 13:06:48 +11:00
cxl.h cxl: Unmap MMIO regions when detaching a context 2014-12-12 13:06:48 +11:00
debugfs.c cxl: Driver code for powernv PCIe based cards for userspace access 2014-10-08 20:15:57 +11:00
fault.c powerpc/mm: don't do tlbie for updatepp request with NO HPTE fault 2014-12-05 16:26:15 +11:00
file.c cxl: Fix leaking interrupts if attach process fails 2014-12-29 15:45:43 +11:00
irq.c cxl: Name interrupts in /proc/interrupt 2014-11-18 13:01:39 +11:00
Kconfig cxl: Add driver to Kbuild and Makefiles 2014-10-08 20:15:58 +11:00
main.c cxl: Driver code for powernv PCIe based cards for userspace access 2014-10-08 20:15:57 +11:00
Makefile cxl: Add driver to Kbuild and Makefiles 2014-10-08 20:15:58 +11:00
native.c cxl: Add timeout to process element commands 2014-12-12 13:06:47 +11:00
pci.c cxl: Change contexts_lock to a mutex to fix sleep while atomic bug 2014-12-12 13:06:47 +11:00
sysfs.c cxl: Change contexts_lock to a mutex to fix sleep while atomic bug 2014-12-12 13:06:47 +11:00