diff options
author | Vaibhav Jain <vaibhav@linux.vnet.ibm.com> | 2015-08-25 07:34:48 +0200 |
---|---|---|
committer | Michael Ellerman <mpe@ellerman.id.au> | 2015-08-27 05:51:18 +0200 |
commit | a6897f39660cc07fa78b4459d82f12b07abb50b1 (patch) | |
tree | 65e2cdb08682a98de731de244ca79656972e327c /drivers/misc/cxl/pci.c | |
parent | cxl: Remove use of macro DEFINE_PCI_DEVICE_TABLE (diff) | |
download | linux-a6897f39660cc07fa78b4459d82f12b07abb50b1.tar.xz linux-a6897f39660cc07fa78b4459d82f12b07abb50b1.zip |
cxl: Release irqs if memory allocation fails
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@linux.vnet.ibm.com>
Acked-by: Ian Munsie <imunsie@au1.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Diffstat (limited to 'drivers/misc/cxl/pci.c')
0 files changed, 0 insertions, 0 deletions