From: Ian Munsie Date: Mon, 8 Dec 2014 08:17:57 +0000 (+1100) Subject: cxl: Fix leaking interrupts if attach process fails X-Git-Tag: omap-for-v4.1/prcm-dts-mfd-syscon-fix~116^2~70 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=456295e284beb7b61a55ead9500d30f94ab06d52;p=pandora-kernel.git 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 Signed-off-by: Michael Ellerman --- Reading git-diff-tree failed