cxl: Release irqs if memory allocation fails

Michael Ellerman mpe at ellerman.id.au
Fri Aug 28 07:58:33 AEST 2015


On Tue, 2015-25-08 at 05:34:48 UTC, Vaibhav Jain wrote:
> This minor patch plugs a potential irq leak in case of a memory
> allocation failure inside function the afu_allocate_irqs. Presently the
> irqs allocated to the context gets leaked if allocation of either
> one of context irq_bitmap or irq_names fails.
> 
> Signed-off-by: Vaibhav Jain <vaibhav at linux.vnet.ibm.com>
> Acked-by: Ian Munsie <imunsie at au1.ibm.com>

Applied to powerpc next, thanks.

https://git.kernel.org/powerpc/c/a6897f39660cc07fa78b4459

cheers


More information about the Linuxppc-dev mailing list