diff options
author | Ian Munsie <imunsie@au1.ibm.com> | 2014-12-08 19:17:57 +1100 |
---|---|---|
committer | Michael Ellerman <mpe@ellerman.id.au> | 2014-12-29 15:45:43 +1100 |
commit | 456295e284beb7b61a55ead9500d30f94ab06d52 (patch) | |
tree | 15b8ebab6eabf0c07cc3d585e998aa87e4872538 /drivers/misc/sgi-xp | |
parent | e144d4edbce67ea269d181f81b9c5ef631743430 (diff) | |
download | op-kernel-dev-456295e284beb7b61a55ead9500d30f94ab06d52.zip op-kernel-dev-456295e284beb7b61a55ead9500d30f94ab06d52.tar.gz |
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>
Diffstat (limited to 'drivers/misc/sgi-xp')
0 files changed, 0 insertions, 0 deletions